Saturday, December 22, 2007

Operating Systems: Change Directory Command

You are writing a batch file. The current focus is the C:\Windows\System directory. What command do you use to change the current focus to the root of the drive C:\?
1. CD\
2. CD..
3. C:
4. C:\
Explanation : The CD command is used to change the directory that has focus when working at a command prompt. The CD\ command changes the current focus to the root directory.
The CD.. command is used to navigate up to the parent directory.

The C: command is used to change the input focus to the C: drive, not to move the focus to the root directory on the same drive.

Typing C:\ will cause an error.
Objective: Operating Systems