What's new
Patriot Smoking & Grilling Forum

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

How can I switch to a different drive and directory using CMD?

datarecovee

New member
To change to a different drive and CMD prompt change directory at the same time, use cd /d followed by the full path to the location you want. For the example above, cd /d D:\Projects will switch the drive and the directory in just one step. Another way to do this is: change the drive first by typing the drive letter and a colon, for instance D:, and then use cd FolderName to locate the desired folder. The /d option is very handy because it merges both operations in a single command. Double-check the path you provide for the existence and correctness of typing, to avoid any errors.
 
Top