Command prompt won't change directory to another drive

后端 未结 11 2228
你的背包
你的背包 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:08

    If you want to change from current working directory to another directory then in the command prompt you need to type the name of the drive you need to change to, followed by : symbol. example: assume that you want to change to D-drive and you are in C-drive currently, then type D: and hit Enter.

    On the other hand if you wish to change directory within same working directory then use cd(change directory) command followed by directory name. example: assuming you wish to change to new folder then type: cd "new folder" and hit enter.

    Tips to use CMD: Windows command line are not case sensitive. When working with a file or directory with a space, surround it in quotes. For example, My Documents would be "My Documents". When a file or directory is deleted in the command line, it is not moved into the Recycle bin. If you need help with any of command type /? after the command. For example, dir /? would give the options available for the dir command.

提交回复
热议问题