How to changing the directory in dos, Computer Engineering

Assignment Help:

Q. How to Changing the Directory in DOS?

You can change the directory. After changing the directory, the new directory becomes the default directory. For example, you change the directory to EXCEL in drive C. Now if you use any DOS command (including DIR) and you do not specify the drive or directory with the command, DOS will automatically use the C:\ EXCEL directory with the command. To change the directory, you can use the CHDIR or CD command, e.g.

    CHDIR \ EXCEL

    CD \ EXCEL

    CD C:\ EXCEL

    CD C:\ EXCEL\SALES

The first two commands try to select the EXCEL directory in the current drive. If the system prompt is C :>, C :\> or starts with 'C:' drive is the default drive. In that case, these commands will try to select the EXCEL directory at the root level in drive C. If the EXCEL directory exists in the default drive, DOS will select it. Otherwise, it will display the message - 'invalid directory'. The next command, i.e. CD C:\ EXCEL too tries to select the EXCEL directory in drive C. Notice that this command uses the complete the path, including the drive name. The last command tries to selects the SALES directory under the EXCEL directory from drive C. Remember that if you want to change the directory in a drive other that the default (current) drive, you must the specify the complete path, including the drive name (letter) with CHDIR or CD. For instance, if your screen displaying 'A :>', 'A :\>' or a similar prompt and you select the word directory in drive C, use any of the following commands.

           CHDIR C:\WORD

            CD C:\WORD

However, if you want to select the directory in the current drive, you may omit the drive name. After change the directory to WORD, if you use the DIR command, DOS displays the list of files from the WORD directory.

To select the root directory in the drive (regardless of the currently selected directory), you can use any of the following commands:

       CHDIR \

        CD \


Related Discussions:- How to changing the directory in dos

Multiple assign statements targeting the same wire, What logic is inferred ...

What logic is inferred when there are multiple assign statements targeting the same wire? It's illegal to specify multiple assign statements to the same wire in a synthesizable

Explain about variable-length of instructions, Q. Explain about Variable-Le...

Q. Explain about Variable-Length of Instructions? With the better understanding of computer instruction sets designers developed the idea of having a range of instruction forma

Differentiate between unit testing and integration testing, Unit testing an...

Unit testing and integration testing: Unit testing focuses on the least element of software design by the module. Unit test is conducted on every of the modules to uncover er

Find 9''s compliment of bcd number using 4-bit binary adder, Design a circu...

Design a circuit for determining the 9's compliment of a BCD number by using 4-bit binary adder and some external logic gates? Compliment of a BCD number 9's co

Why SS7 protocol is use, SS7 Protocol uses: (A) Out of band signalling...

SS7 Protocol uses: (A) Out of band signalling. (B) Associated signalling. (C) Speech control signalling. (D) No signalling. Ans: SS7 Protocol uses Out of

Mathcad solution to compute the ellipsoid radii , Question: Write a Mat...

Question: Write a MathCad solution to compute the ellipsoid radii at a point. Use the defining parameters for the GRS80 ellipsoid - a and f - in table 19.1. Program Equation 19

Show various RISC processors, Q. Show Various RISC Processors? RISC has...

Q. Show Various RISC Processors? RISC has fewer design bugs and its simple instructions decrease design time. Sodue to all the above important reasons RISC processors have beco

Operation codes used in assembly instructions, Q. Operation codes used in a...

Q. Operation codes used in assembly instructions? Now let's describe various operation codes needed for this machine so that we can translate High level language instructions t

What is assembly condition codes, Condition codes are the list of possible ...

Condition codes are the list of possible conditions that can be tested through conditional instructions. Typical conditional instructions have: conditional branches, conditional ju

Features of mpi-1, Features of MPI-1 Binding for FORTRAN and C ...

Features of MPI-1 Binding for FORTRAN and C Collective communication Communication domains and Process groups Point-to-point communication Virtual process

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd