开发者

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜