How to Change Directories in Command Prompt

Part 1 of 2:

Opening Command Prompt

  1. How to Change Directories in Command Prompt Picture 1
    Open Start. Either click the Windows logo in the bottom-left corner of the screen, or press the Win key.
    1. For Windows 8, place your mouse cursor in the top-right corner of the screen, then click the magnifying glass icon when it appears.
  2. How to Change Directories in Command Prompt Picture 2
    Type in cmd. This will bring up the Command Prompt icon at the top of the Start window.
  3. How to Change Directories in Command Prompt Picture 3
    Right-click Command Prompt. It resembles a black box. This invokes a drop-down menu.
  4. How to Change Directories in Command Prompt Picture 4
    Click Run as administrator. It's near the top of the drop-down menu. Doing so will open Command Prompt with administrator privileges.
    1. Confirm this choice by clicking Yes when prompted.
    2. 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

  1. How to Change Directories in Command Prompt Picture 5
    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.
    1. Don't press the Enter key.
  2. How to Change Directories in Command Prompt Picture 6
    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".
    1. 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.
  3. How to Change Directories in Command Prompt Picture 7
    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.
    1. For example, your whole command might look like cd WindowsSystem32 or cd D:.
    2. 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.
  4. How to Change Directories in Command Prompt Picture 8
    Press Enter. Doing so will change the Command Prompt directory to your selected one.
5 ★ | 1 Vote

May be interested

  • How to Use Windows Command Prompt to Run a Python FilePhoto of How to Use Windows Command Prompt to Run a Python File
    this 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 PromptPhoto of How to Kill a Process in Command Prompt
    to 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 LinePhoto of How to Remotely Restart a Windows Machine Through Command Line
    this 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 SendPhoto of How to Use Net Send
    net 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 PromptPhoto of How to Create and Delete Files and Directories from Windows Command Prompt
    this 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 VistaPhoto of How to Decipher the Right Application to View an Unknown File Type on Windows Vista
    with 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...