Change Directories in Command Prompt
The Command Prompt emulates the DOS prompts of older systems, and allows you to navigate your computer’s files and folders. There are several essential commands for navigating the Command Prompt. Follow this guide to learn everything you need to know.
Steps
- Open the Command Prompt. You can access the Command Prompt by clicking the Start menu and entering cmd into the search field. You can also access it by entering cmd into the Run field, or it can be found in the Accessories/System Tools folder of the Start menu.
- In Windows 8, press the the Windows key + X and select Command Prompt from the menu.
- Get oriented. When you first start the Command Prompt, you will be located in your personal directory. This is typically C:\Users\Template:Var\
- Familiarize yourself with the basic navigation commands. There are a few key commands to getting around in Command Prompt. Learning these will help you speedily move through the directories. Press Enter after each command to execute it:
- dir - This command will list all of the folders and files in the directory you are currently at.
- cd Template:Var - This command will move you to the folder that you specify. The folder must be in the directory you are currently in. For example: If you are currently at C:\Users\Template:Var\ and you enter cd desktop you will be taken to C:\Users\Template:Var\Desktop\
- cd Template:Var - This command will take you to a specific path on your computer. You do not need to be in the same directory as the path. You must enter the entire path for it to work. For example: cd C:\Windows\System32
- cd .. - This command will move you up one directory from your current location. For example: If you are currently at C:\Users\Template:Var\ and you enter cd .. you will be taken to C:\Users\
- cd\ - This command will take you to the root directory, regardless of your location. For example: If you are currently at C:\Users\Template:Var\ and you enter cd\ you will be taken to C:\
- Template:Var: - This command will take you to the drive letter that you specify. The drive you specify will need to be active, or have a disc in it if it a CD\DVD drive. For example, if you want to switch to your D drive, you would enter the command D:
- exit - This command will exit the Command Prompt, no matter your current location.
Tips
- Type cd in the command prompt to display the current directory
- To open the RUN dialog quickly, press the Windows key + R.
- If you are unsure on the exact spelling of a folder you can press Tab and use the up and down keys to scroll through the folders that finish what you started typing. Example: Assuming you had the folders helloYou and helloMe in your C:\ directory you could type cd c:\h then press Tab twice to scroll through your folders starting with h (case sensitive)
Related Articles
- Create a Custom Windows Command Prompt
- Find the CMD Commands Help
- Delete a File Using Command Prompt
- Change the Computer Time and Date Using the Command Prompt
- Create and Delete Files and Directories from Windows Command Prompt