How to Change Directories in Command Prompt
Part 1 of 2:
Opening Command Prompt
- Open Start. Either click the Windows logo in the bottom-left corner of the screen, or press the ⊞ Win key.
- For Windows 8, place your mouse cursor in the top-right corner of the screen, then click the magnifying glass icon when it appears.
- Type in cmd. This will bring up the Command Prompt icon at the top of the Start window.
- Right-click Command Prompt. It resembles a black box. This invokes a drop-down menu.
- Click Run as administrator. It's near the top of the drop-down menu. Doing so will open Command Prompt with administrator privileges.
- Confirm this choice by clicking Yes when prompted.
- You won't be able to run Command Prompt in administrator mode if you're on a restricted, public, or networked computer (e.g., a library or school computer), or an otherwise non-administrator account.
Part 2 of 2:
Changing the Directory
- Type in cd . Make sure you include the space after "cd". This command, which stands for "change directory", is the root of any directory change.
- Don't press the ↵ Enter key.
- Determine your directory's path. A directory path is like a map to a specific folder. For example, if the directory to which you want to change is the "System32" folder that's in the "WINDOWS" folder on the hard drive, the path would be "C:WINDOWSSystem32".
- You can find a folder's path by opening My Computer, double-clicking the hard drive icon, navigating to your destination, and then looking at the address at the top of the folder.
- Type in your directory's path. Your command or address goes after the "cd" command; make sure there is a space between "cd" and your command.
- For example, your whole command might look like cd WindowsSystem32 or cd D:.
- Since your computer's default directory location will be the hard drive (e.g., "C:"), you don't need to type in the hard drive's name.
- Press ↵ Enter. Doing so will change the Command Prompt directory to your selected one.
5 ★ | 1 Vote
You should read it
- How to Open Folders in CMD
- How to use the command history function in Command Prompt
- Use CMD to create an 'undeleted' folder on Windows
- 6 ways to rename files and folders in Windows 10
- How to Execute a Program in Command Prompt
- How to Change Default Folder in Windows Terminal
- How to change the folder in Command Prompt on Windows 10
- Add Command Prompt to Power User Menu on Windows 10
May be interested
- How to Use Windows Command Prompt to Run a Python Filethis wikihow teaches you how to open a python file with your windows computer's built-in command prompt program. in most cases, you can do this without any trouble as long as you have python installed. if you installed an old version of...
- How to Kill a Process in Command Promptto kill processes on your computer, you would normally use the windows task manager. the windows task manager is a program designed to help you manage the processes running on your computer. although the task manager is sufficient for most...
- How to Remotely Restart a Windows Machine Through Command Linethis wikihow teaches you how to restart another computer on your network from your own computer by using the windows command prompt app. you cannot remotely restart a computer with command prompt if you haven't previously set the computer...
- How to Use Net Sendnet send is a command line tool used in windows xp for sending messages to other users and computers on a local network. with windows vista, net send was replaced with msg.exe, a command line tool that has very similar functionality and...
- How to Create and Delete Files and Directories from Windows Command Promptthis wikihow teaches you how to use the windows command prompt to create and delete files and folders (also known as directories). the files you create at the prompt can be modified and managed with windows apps, including file manager and...
- How to Decipher the Right Application to View an Unknown File Type on Windows Vistawith so many file extensions out there nowadays, its completely possible, that a few might not have a representable program existent on the 'open with' dialog box. if this is the case, this article will be for you. navigate to the proper...