how to change directory using Windows command line

后端 未结 4 1482
北恋
北恋 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:15

    Another alternative is pushd, which will automatically switch drives as needed. It also allows you to return to the previous directory via popd:

    C:\Temp>pushd D:\some\folder
    D:\some\folder>popd
    C:\Temp>_

提交回复
热议问题