Reputation: 53
Is it possible to create a desktop shortcut or task bar shortcut that opens a CMD window in a specified directory on a windows OS?
Upvotes: 0
Views: 453
Reputation: 140168
Yes, it is possible and easy, without creating anything else than a shortcut:
start in
to the required directoryUpvotes: 2
Reputation: 778
Create a shortcut to cmd.exe. Right click on the shortcut and select properties. At the end of the Target add /k and the command to navagate to the directory in double quotes. For example, this takes you to the root directory:
C:\Windows\System32\cmd.exe /k "cd\"
Upvotes: 0
Reputation: 1447
ConEmu is quite a useful tool (and free) as it allows you to start a command window within a folder by simply right clicking in the folder and selecting from the menu.
If you have only one specific folder, though, and you want to create a shortcut for it, set your shortcut to...
cmd /K "cd C:[YourFolderName]\"
Substituting as necessary.
Upvotes: 0
Reputation: 345
Yes, tricky one is like. Create .bat file with cd $folderPath and open folder to $folderPath
Upvotes: 0