how to change directory using Windows command line

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

    The "cd" command changes the directory, but not what drive you are working with. So when you go "cd d:\temp", you are changing the D drive's directory to temp, but staying in the C drive.

    Execute these two commands:

    D:
    cd temp
    

    That will get you the results you want.

提交回复
热议问题