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

Convert decimal number to ocatl number, Convert (177.25) 10 to octal A...

Convert (177.25) 10 to octal Ans. 177.25) 10 = (         ) 8 Firstly we take integer part Hence (177) 10 = (261) 8 Now as 0.25 x 8 = 2.00 and 0.00 x 8 = 0 Therefor

excitation diagram indicating , a.  Sketch the excitation diagram indicati...

a.  Sketch the excitation diagram indicating the last states and next states. b. Build the circuit using a Synchronous Counter with JK FF and NAND gates only. Replicate the circ

Task gantt, The Task Gantt shows the various tasks being performed i.e., so...

The Task Gantt shows the various tasks being performed i.e., some type of activities by the set of processors attached to the parallel computer as shown in Figure . Task Gantt

Detemine the major building blocks of uml, Detemine the major building bloc...

Detemine the major building blocks of UML UML could be used in visualizing, specifying, constructing and documenting object oriented systems. The major building blocks of UML a

What are the types of instructions, Q. What are the types of Instructions? ...

Q. What are the types of Instructions? Computer instructions are translation of high level language code to machine level language programs. So from this point of view machine

Enumerate in detail about image scanners, Enumerate in detail about Image S...

Enumerate in detail about Image Scanners Drawings, graphs, colour and black-and-white photos, or text can be stored for computer processing with an image scanner by passing an

How to reduce total amount of disk space in ftp, Q. How to reduce total amo...

Q. How to reduce total amount of disk space in FTP? FTP service compress files to reduce total amount of disk space the files require. Before transferring a file user should te

What is memory address register, Q. What is Memory Address Register? Me...

Q. What is Memory Address Register? Memory Address Register (MAR): It specifies address of memory location from that data or instruction is to be accessed (read operation) or t

Explain the term overlays, Explain the term Overlays. An overlay is an ...

Explain the term Overlays. An overlay is an element of program that has the same load origin as several other part of the program. These are used for reduce the main memory req

What is wap, What is WAP? WAP is stands for Wireless Application Proto...

What is WAP? WAP is stands for Wireless Application Protocol. It is a global, open standard which gives mobile users access to Internet services by handled devices. Wireless A

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