Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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 \

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9568467

Have any Question?


Related Questions in Computer Engineering

Can you help me how i can connect 2 new sub java classes to

Can you help me how I can connect 2 new sub java classes to the main one with CSV file? I will attach the instruction and the CSV file if you guys accept this. Please help me do it. Please add descriptive comments so I c ...

Do you need computers or information and communication

Do you need computers or information and communication technologies to store, organize, and manage data in organizations? Explain how the present day organizations in a developed country like the USA store and manage the ...

Suppose that the demand curve for tickets to see a football

Suppose that the demand curve for tickets to see a football team play a game is given by Q = 80,000 - 40P and marginal cost is zero. The team's stadium can host 75,000 fans. 1) How many tickets would the team sell if it ...

Question rns versus gsd representation we are contemplating

Question : RNS versus GSD representation We are contemplating the use of 16-bit representations for fast integer arithmetic. One option, radix-8 GSD representation with the digit set [-5,4], can accommodate four-digit nu ...

The decomposition of so2cl2 is first order in so2cl2 and

The Decomposition of SO2Cl2 is first order in SO2Cl2 and has a rate constant of 1.42*10-4s-1 at a certain temperature. What is the half-life for this reaction?

The data reflects student enrollment at a college in

The data reflects student enrollment at a college in Southern California. Traditional math pathwayAccelerated math pathwayRow totalsFemale12441161360Male1054541108Column totals22981702468 We want to determine if the prob ...

Need guidance on a c program that1 asks the user to input a

Need guidance on a C++ program that: 1. Asks the user to input a number of cents 2. Calculates and displays the number of quarters, dimes, nickels, and pennies that should be used to reach the value. EX: 67 cents would b ...

Specifically you will create an e-commerce application

Specifically, you will create an e-Commerce application using PHP and HTML that allows a user to login to a website, select several products for purchase and then place an order for those items selected. The type of prod ...

Requirementsdesign and implement an application with a

Requirements Design and implement an application with a graphical user interface to manage a library of songs. A song is uniquely identified by name and artist (case insensitive). Your application should have a SINGLE WI ...

Question suppose we have a rectangle class that includes

Question : Suppose we have a Rectangle class that includes length and width attributes of type int, both set by the constructor. Create a compareTo method for this class so that rectangle objects are ordered based on the ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As