Easy Steps to Change Directories in Command Prompt – With Screenshot Pics

How to Change Directory Through command in Windows – Step by Step

Change Directories in Command Prompt – Some times while working on the command prompt you might have face lots of problems like you are not able to recall the command for some specific task.

I personally like to use command mode as I am a CLI (Command Line Interface) lover. Therefore today I am going to show you the some ways how to change folder or directory in the Windows through command prompt. These are very simple steps executed in real with the screenshots for the better understanding.

Change Directory Through ‘cmd or command mode’ in Windows:

Step 1: To Change Directories in Command Prompt in Windows follow the steps:

Go to the Start Menu, type ‘com’ or ‘cmd’ and the best match will be available to you. Then Press Right button of mouse on the ‘Command Prompt’ and select ‘Run as Administrator’. Or just Press ‘Win’+’X’, and select ‘Command Prompt (Admin)’.


Step 2: In this ‘Command Prompt’,

First of all type ‘cd\’ to exit from all directories in one go and to come directly on the ‘C:\>’.

Or Type ‘cd..’ to exit one by one from each directory.

Step 3: Suppose you are are in the ‘C:\Users\Dell’ and you have to go ‘C:\Windows\system32’, If you want to go directly to some other directory then type this command,

C:\Users\Dell>cd \Windows\system32

And press ‘Enter’ key.

Step 4: Suppose you want to go directly to some other directory which is in another drive, then you should add ‘/d’ switch, a parameter used to change the current drive to a specific folder from another disk volume. To do this type command,

C:\Windows\System32> cd /d F:\1\2\Office_Logs

And press ‘Enter’ key.

Step 5: To change the drive simply type the Drive Letter followed by ‘:’ called as colon.

For example type:

C:\> E:             —-       and press enter key.

Here in this article we have focused to ‘Change Directories in Command Prompt’ and I showed you how to change the directory or folder through command mode. These are the most efficient and easy steps which can be followed by the any user. I hope you will like it.

Question 1. How to remove an empty folder through command in Linux/Unix?

Answer: ‘rmdir’ is a command which will remove an empty directory or folder.

Question 2. What is CD command in DOS?

Answer: CD command is also known as Change Directory command. It is a CLI Mode command used to change the current working directory.

Question 3. How can I create a folder in CMD?

Answer: ‘md’ command is used to make a new folder or directory in cmd.

Question 4. How to create a subdirectory through command prompt in Windows?

Answer: ‘md’ command can also be used to create multiple folders with subdirectories. Type the following command:

C:/>  md 1\2\3 4\5\6 

Press Enter key. This command will create two folders ‘1’ and ‘4’ with their subfolders ‘2’ with its subfolder ‘3’ and ‘5’ with its subfolder ‘6’, respectively.

Question 5. What is a deltree command used for?

Answer: Deltree command is used to delete one or more files and directories. For Example – deltree c:\1 , this command will delete the folder ‘1’ with all the subfolders it contain.

Question 6. What is an internal in MS DOS?

Answer: In MS DOS, an internal command is any command that resides in the COMMAND.COM file. It includes the most common DOS commands, such as cd, cls, copy, dir, etc.

Question 7. What is an external command in MS DOS?

Answer: The commands that reside in other COM files, or in EXE or BAT files, are called external commands, such as deltree, chkdsk, chkntfs, etc.