1. Home
  2. Computing & Technology
  3. PC Support

Chdir (Cd)

By Tim Fisher, About.com

What is the Chdir Command?:

The chdir command is a Recovery Console command used to display the name of the current folder or to change from the current folder to another.

"Chdir" and "Cd" may be used interchangeably.

Chdir Command Syntax:

chdir [drive:][path] [..]

drive = This is the drive letter containing the folder that you wish change to.

path = This is the folder or folder path that you wish to change to.

... = This changes your location to the parent folder. Use a space before the double period.

Note: The chdir command only functions inside the system folders of the current installation of Windows, in removable media, in the root folder of any partition, or in the local Windows installation source.

Chdir Command Examples:
chdir system32

In the above example, typing the chdir command followed by system32 will change your location to the System32 folder, located within your current folder.

For example, if you typed chdir system32 from the C:\Windows prompt, your location would be changed to the C:\Windows\System32 folder.

chdir c:\windows\system

In this example, the chdir command is used to change your location to the c:\windows\system folder. Since the entire path was entered, this folder change could be entered from any other folder location you might be in.

Chdir Command Availability:

The chdir command is available from within the Recovery Console in Windows 2000 and Windows XP.

The chdir command is also accessible from the Command Prompt in any version of Windows but with different options and restrictions.

Chdir Related Commands:

The chdir command is often used with many other Recovery Console commands.

Explore PC Support
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PC Support
  4. Glossary / Terms
  5. C
  6. Chdir - Chdir Command Details - Recovery Console Command - Cd>

©2009 About.com, a part of The New York Times Company.

All rights reserved.