• About
  • Contact
  • Cookie
  • Disclaimer
  • Privacy Policy
  • Change the purpose of use

Tnhelearning.edu.vn - Various useful general information portal

  • Photo
  • Bio
  • How To
  • Tech

How to Change Directory in Command Prompt

December 15, 2023 by admin Category: How To

You are viewing the article How to Change Directory in Command Prompt  at Tnhelearning.edu.vn you can quickly access the necessary information in the table of contents of the article below.

X

This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.

The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.

This article has been viewed 142,464 times.

This is an article that shows you how to change the directory in the Command Prompt program on a Windows computer. To change commands in Command Prompt, you must use an administrator account.

Table of Contents

  • Steps
    • Open Command Prompt
    • Change directory
  • Advice
  • Warning

Steps

Open Command Prompt

Image titled Change Directories in Command Prompt Step 1

Image titled Change Directories in Command Prompt Step 1

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/f/fd/Change-Directories-in-Command-Prompt-Step-1-Version-4.jpg/v4-728px-Change- Directories-in-Command-Prompt-Step-1-Version-4.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/f/fd/Change-Directories-in-Command- Prompt-Step-1-Version-4.jpg/v4-728px-Change-Directories-in-Command-Prompt-Step-1-Version-4.jpg”,”smallWidth”:460,”smallHeight”:342,” bigWidth”:728,”bigHeight”:541,”licensing”:”<div class=”mw-parser-output”></div>”}
Open Start. You can click the Windows icon in the lower left corner of the screen or press the ⊞ Win key.

  • On a Windows 8 computer, you would place your mouse pointer in the upper-right corner of the screen, and then click the magnifying glass icon when you see it displayed.
Image titled Change Directories in Command Prompt Step 2

Image titled Change Directories in Command Prompt Step 2

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/1/17/Change-Directories-in-Command-Prompt-Step-2-Version-4.jpg/v4-728px-Change- Directories-in-Command-Prompt-Step-2-Version-4.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/1/17/Change-Directories-in-Command- Prompt-Step-2-Version-4.jpg/v4-728px-Change-Directories-in-Command-Prompt-Step-2-Version-4.jpg”,”smallWidth”:460,”smallHeight”:344,” bigWidth”:728,”bigHeight”:545,”licensing”:”<div class=”mw-parser-output”></div>”}
Enter cmd . With this action, you will see the Command Prompt icon displayed at the top of the Start window.
Image titled Change Directories in Command Prompt Step 3

Image titled Change Directories in Command Prompt Step 3

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/3/33/Change-Directories-in-Command-Prompt-Step-3-Version-4.jpg/v4-728px-Change- Directories-in-Command-Prompt-Step-3-Version-4.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/3/33/Change-Directories-in-Command- Prompt-Step-3-Version-4.jpg/v4-728px-Change-Directories-in-Command-Prompt-Step-3-Version-4.jpg”,”smallWidth”:460,”smallHeight”:344,” bigWidth”:728,”bigHeight”:544,”licensing”:”<div class=”mw-parser-output”></div>”}
Right click on Command Prompt. This is a program with a black box icon. A menu will appear on the screen after the right click.
Image titled Change Directories in Command Prompt Step 4

Image titled Change Directories in Command Prompt Step 4

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/e/e7/Change-Directories-in-Command-Prompt-Step-4-Version-2.jpg/v4-728px-Change- Directories-in-Command-Prompt-Step-4-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/e/e7/Change-Directories-in-Command- Prompt-Step-4-Version-2.jpg/v4-728px-Change-Directories-in-Command-Prompt-Step-4-Version-2.jpg”,”smallWidth”:460,”smallHeight”:344,” bigWidth”:728,”bigHeight”:544,”licensing”:”<div class=”mw-parser-output”></div>”}
Click Run as administrator . This is the option at the top of the menu. This allows you to access the Command Prompt with administrator privileges.

  • Confirm your choice by clicking Yes when asked.
  • You cannot use the Command Prompt in administrator mode if you are using a restricted computer, a public computer, or a computer on a local network (such as a computer at a library or school), or regular user account.
READ More:   How to Reduce Impulsivity

Change directory

Image titled Change Directories in Command Prompt Step 5

Image titled Change Directories in Command Prompt Step 5

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/0/02/Change-Directories-in-Command-Prompt-Step-5-Version-2.jpg/v4-728px-Change- Directories-in-Command-Prompt-Step-5-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/0/02/Change-Directories-in-Command- Prompt-Step-5-Version-2.jpg/v4-728px-Change-Directories-in-Command-Prompt-Step-5-Version-2.jpg”,”smallWidth”:460,”smallHeight”:346,” bigWidth”:728,”bigHeight”:548,”licensing”:”<div class=”mw-parser-output”></div>”}
Enter cd . Remember to enter a space after the “cd” command. This command stands for “change directory” and is used every time you want to change directory in Command Prompt.

  • Don’t press the ↵ Enter key right now.
Image titled Change Directories in Command Prompt Step 6

Image titled Change Directories in Command Prompt Step 6

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/8/88/Change-Directories-in-Command-Prompt-Step-6-Version-2.jpg/v4-728px-Change- Directories-in-Command-Prompt-Step-6-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/8/88/Change-Directories-in-Command- Prompt-Step-6-Version-2.jpg/v4-728px-Change-Directories-in-Command-Prompt-Step-6-Version-2.jpg”,”smallWidth”:460,”smallHeight”:347,” bigWidth”:728,”bigHeight”:549,”licensing”:”<div class=”mw-parser-output”></div>”}
Specify the path to your directory. The path to the folder is like a map that takes you to a certain folder. For example, if you wanted to access the “System32” folder in the “WINDOWS” folder on your hard drive, the path would be “C:WINDOWSSystem32”.

  • You can find the path to the folder by opening My Computer, double-clicking the hard drive icon, navigate to the desired folder, and look up at the address bar above the folder.
Image titled Change Directories in Command Prompt Step 7

Image titled Change Directories in Command Prompt Step 7

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/1/11/Change-Directories-in-Command-Prompt-Step-7.jpg/v4-728px-Change-Directories-in- Command-Prompt-Step-7.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/1/11/Change-Directories-in-Command-Prompt-Step-7.jpg/ v4-728px-Change-Directories-in-Command-Prompt-Step-7.jpg”,”smallWidth”:460,”smallHeight”:346,”bigWidth”:728,”bigHeight”:548,”licensing”:” <div class=”mw-parser-output”></div>”}
Enter the path to the directory. Your command or address will be entered after the “cd” command; make sure there is a space in between the “cd” command and your command.

  • For example, your complete command would be cd WindowsSystem32 or cd D: .
  • Since your computer’s default directory is your hard drive (such as “C:”), you don’t need to enter a hard drive name.
  • Image titled Change Directories in Command Prompt Step 8

    Image titled Change Directories in Command Prompt Step 8

    {“smallUrl”:”https://www.wikihow.com/images_en/thumb/7/78/Change-Directories-in-Command-Prompt-Step-8.jpg/v4-728px-Change-Directories-in- Command-Prompt-Step-8.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/7/78/Change-Directories-in-Command-Prompt-Step-8.jpg/ v4-728px-Change-Directories-in-Command-Prompt-Step-8.jpg”,”smallWidth”:460,”smallHeight”:346,”bigWidth”:728,”bigHeight”:547,”licensing”:” <div class=”mw-parser-output”></div>”}
    Press ↵ Enter . This will change the folder in the Command Prompt to the folder of your choice.
  • Advice

    • Changing the directory is useful when you want to modify or delete files in a certain folder.
    • Here are some common directory handling commands in Command Prompt:
      • D: or F: – Change directory to another drive or external storage.
      • .. – Go to the directory before the current directory (such as “C:WindowsSystem32” to “C:Windows”).
      • /d – Change the drive and directory at the same time. For example, if the Command Prompt is on the drive (“D:”), typing “cd /d C:Windows” will take you to the Windows folder on the hard drive (“C:”).
      • – Takes you to the root directory (such as a hard drive).
    READ More:   How to tell the difference between a wrist sprain and a wrist fracture

    Warning

    • Attempting to execute a command related to a certain file or directory while you are in another directory will generate an error.
    X

    This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.

    The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.

    This article has been viewed 142,464 times.

    This is an article that shows you how to change the directory in the Command Prompt program on a Windows computer. To change commands in Command Prompt, you must use an administrator account.

    Thank you for reading this post How to Change Directory in Command Prompt at Tnhelearning.edu.vn You can comment, see more related articles below and hope to help you with interesting information.

    Related Search:

    Related Posts

    How to Create Curved Text in Photoshop
    How to fall asleep faster
    How to Install FBReader to Read eBooks

    Category: How To

    Previous Post: « Top 999+ murugan images hd wallpaper – Amazing Collection murugan images hd wallpaper Full 4K
    Next Post: Top 999+ Mighty Mouse Wallpaper Full HD, 4K✅Free to Use »

    Copyright © 2025 · Tnhelearning.edu.vn - Useful Knowledge