How do I set the current working directory/drive in a dos batch file?
cd d:\projects
does not work
How can I set the 开发者_如何学Gocurrent working drive and directory so that I can run msbuild scripts from there?
This is also handy:
pushd D:\projects
You can then return to the directory you were previously at with:
popd
try the following:
D:
cd \projects
or, in a single line (courtesy of Kilanash):
cd /d D:\projects
Launch cmd
as current Windows Explorer directory:
https://superuser.com/questions/205359/how-to-open-command-prompt-in-current-folder-by-keyboard-shortcut
Best AutoHotKey macros?
精彩评论