Change directory or drive in command prompt!
Sometimes you just need to change directory or even drive in Command Prompt on all MS Windows Desktop and Server OS!
Everyone probably knows how easy it is ► ... to open the command prompt directly in each folder , but what if you want to change the directory or drive directly in cmd.exe?
1.) Jumping into a subdirectory of the command prompt
When you start the command prompt you can directly use the dir command to change to a subdirectory!
1. Start command prompt
2. Dir command to list subdirectories
3. Change to the relevant directory with "cd" (Change Directory)
(... see Image-1 Point 1 to 4)
Here in the example it is the personal desktop directory you can run commands that affect the directory!
| (Image-1) Change directory or drive in command prompt!
2.) Changing the drive in the command prompt
If you want to change the drive, for example, enter D: to change to the drive,
then you can list the subdirectories with "dir" to possibly change to a subdirectory!
(... see Image-2 Point 1 and 4)
| (Image-2) Change drive and then subdirectory!
3.) Changing the drive and directory in the command prompt
For example, you can use two commands on one line to jump to a subdirectory on another drive!
Two commands are separated by the & character, for example: f:&cd f:\dx9 or only f:&cd dx9
Or with the parameter "d" you are on drive X and want to change to the directory F:\dx9
Then it would be the command line X:\>cd /df:\dx9
( ... see Image-3 )
| (Image-3) Change directory and drive in the command prompt!
Always use the /D option to change the current drive in addition to changing directories.
4.) What should I watch out for in directories and commands?
Even if it's not always as practical as opening the directory from the address line in File Explorer or dragging and dropping it into cmd.exe. Nevertheless, it is good to know how to enter a command to change directories or drives directly in the command prompt.
It should be noted that, for example, you are executing the command in the wrong directory, because in File Explorer you can no longer undo actions such as deleting.
FAQ 130: Updated on: 26 August 2023 10:58
You can find out programs that start with Windows via the classic command prompt on all MS Windows OS Everyone probably knows the practical ► Autostart
Sometimes you just want to see what programs are accessing the internet, luckily you can do that from the classic command prompt with netstat 1. Show
Should I use robocopy or xcopy from the command prompt on MS Windows OS eg to copy and sync the directories? Thanks to the robocopy or xcopy commands, you
In the command prompt you can adjust the password expiration date by defining it in the NET ACCOUNTS command Its that easy to adjust the password maximum
With NET ACCAUNTS you can quickly set password rules for all MS Windows 11, 10, Desktop and Microsoft Server operating systems The "Net Accounts" command
If you have problems establishing an Internet connection, it can be helpful to delete the connection IPs of the visiting website via the command prompt
Deleting file or folder via command prompt on MS Windows desktop and server operating systems is a popular solution to delete Every once in a while, due
»» My question is not there in the FAQ
Keywords: windows, console, change, directory, drive, command, prompt, sometimes, just, need, even, desktop, server, everyone, probably, knows, easy, Questions, Answers, Software