How to move cmd to the specified folder: First press the shortcut key "WIN R" and bring up the run command window; then enter CMD and click Enter to confirm the run; then enter the command " cd /d d:\test" to directly enter any folder under the specified drive letter.
#The operating environment of this article: Windows 7 system, Dell G3 computer.
Press the shortcut key: WIN R, bring up the run command window, and enter CMD, press Enter to confirm the run
At this moment, a CMD will be opened Window
Normally, if we want to enter any directory under another drive letter, we need to run the command twice in the CMD window: first, enter the drive letter, and second Enter the specified directory for the first time
#进入D盘 d: #进入D盘下的test目录 cd test
By using the CD command and adding the parameter /d, you can directly enter any folder under the specified drive letter in one step.
#一个步骤进入D盘下的test目录 cd /d d:\test
Error example: If you do not add the /d parameter and press Enter to run, you cannot change the working directory
For more related knowledge, please visitPHP Chinese website!
The above is the detailed content of How to cmd to a specified folder. For more information, please follow other related articles on the PHP Chinese website!