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

Rubbers, engineering plastics ,rubbers ,composites

engineering plastics ,rubbers ,composites

Explain multiple instruction and single data stream (misd), Multiple Instru...

Multiple Instruction and Single Data stream (MISD): In this type of organization multiple processing elements are ordered under the control of multiple control units. Every contro

Interaction design, This unit introduces the most important ID terminology,...

This unit introduces the most important ID terminology, explains why ID is important, and gives a description of the main ID activities and the characteristics of the ID process. I

Describe about the layered computer design, Describe about the Layered comp...

Describe about the Layered computer design Introduction Layered computer design focuses on computer design. It uses top-down, layered approach to design and also to improve

What is ai, Artificial intelligence ("AI") can mean a lot of things too man...

Artificial intelligence ("AI") can mean a lot of things too many people. Much confusion arises that the word 'intelligence' is ill-defined. The phrase is so broad that people have

Define constraints, Define Constraints Constraints can be defined as P...

Define Constraints Constraints can be defined as Preconditions (input values) and Post Conditions (output values). Preconditions on functions are constraints which input value

I want a computer science homework tutor, I can send you the lecture notes ...

I can send you the lecture notes and assignments, and you will walk me through (either record a screencast, or kind on the assignments in red colored font) steps on how to do the a

What do you meant by a storage device, Question : (a) What do you me...

Question : (a) What do you meant by a storage device? (b) List 5 examples of storage devices and give their uses (c) What are the differences between backup and ar

Design a flash project, The only way to respond effectively to a design pro...

The only way to respond effectively to a design project is to first understand the topic well yourself. To do this you need to research the topic and ask yourself a series of quest

Explain cocomo model, A COCOMO model is :- COCOMO:- Constructive Cost Es...

A COCOMO model is :- COCOMO:- Constructive Cost Estimation Model.

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