How to change directory in Windows?

QuestionsQuestions8 SkillsProBasic Files OperationsNov, 02 2025
092

To change the directory in Windows, you can use the cd (change directory) command in the Command Prompt. Here’s how to do it:

Basic Usage

  1. Open Command Prompt:

    • Press Win + R, type cmd, and hit Enter.
  2. Change to a Specific Directory:

    cd C:\path\to\directory
  3. Change to a Subdirectory:
    If you are in a directory and want to change to a subdirectory:

    cd subdirectory_name
  4. Go Up One Level:
    To move up one level in the directory hierarchy:

    cd ..
  5. Return to the Root Directory:
    To return to the root of the current drive:

    cd \
  6. Change Drive:
    If you want to change to a different drive (e.g., from C: to D:), simply type the drive letter followed by a colon:

    D:

Example

If your current directory is C:\Users\YourName and you want to change to a directory named Documents, you would use:

cd Documents

After executing the cd command, you can verify your new current directory by using:

cd

This will display the path of the current directory.

0 Comments

no data
Be the first to share your comment!