Command prompt won't change directory to another drive

后端 未结 11 2260
你的背包
你的背包 2020-12-04 04:16

I\'m trying to compile some java (learning java currently), and to do so I need to change command-prompt\'s directory (using javac).

C:\\...\\Admin> cd D:         


        
11条回答
  •  囚心锁ツ
    2020-12-04 05:00

    The cd command on Windows is not intuitive for users of Linux systems. If you expect cd to go to another directory no matter whether it is in the current drive or another drive, you can create an alias for cd. Here is how to do it in Cmder:

    • Go to $CMDER_ROOT/config and open the file user_aliases.cmd
    • Add the following to the end of the file:
    cd=cd /d $*
    

    Restart Cmder and you should be able to cd to any directory you want. It is a small trick but works great and saves your time.

提交回复
热议问题