how to change directory using Windows command line

后端 未结 4 1478
北恋
北恋 2020-12-12 09:54

I\'m using cmd.exe (C:\\WINDOWS\\System32\\cmd.exe) and I have to change my current directory to \"D:\\temp\" i.e. temp folder in the D drive.

When I tr

4条回答
  •  情书的邮戳
    2020-12-12 10:01

    cd has a parameter /d, which will change drive and path with one command:

    cd /d d:\temp
    

    ( see cd /?)

提交回复
热议问题