Home computickets Change to another drive cmd (Windows 7)

Change to another drive cmd (Windows 7)

Author

Date

Category

How to switch to another drive in the command line (cmd) ???

Drive name “b”

I do this, but it does not work (I tried to enter in all registers in different combinations)

cd / B b: \

Answer 1, authority 100%

In case you just need to go to the root of another disk, just specify the disk name without the cd command

b:

Then you can navigate through the folders using the command cd .

You can immediately change the drive and go to folders (see Bald’s answer)


Answer 2, authority 39%

To change to a different drive on the Windows command line, simply enter its name with a colon. For example, to go to drive D , you would type

d:

The cd command has one peculiarity. If you specify in it a different drive that is currently active, then the transition to the desired directory will not occur. You will remain on the active disk without switching to another. To not only change the current directory on another disk, but also switch to it, you need to add the / d key:

cd / d d: \ Folder

Answer 3, authority 22%

D: \ & gt; cd /?

Display the name or change the current directory.

CHDIR [/ D] [drive:] [path] CHDIR [..] CD [/ D] [drive:] [path] CD [..]

.. indicates a transition to the parent directory.

Command CD Drive: Displays the name of the current directory of the specified drive.
The CD command without parameters displays the names of the current drive and directory.

The / D parameter is used to simultaneously change the current disk and
directory.

Changing CHDIR command when extended command processing is enabled:

The name of the current directory in the call string is converted to the same case
characters as for existing names on disk. So, the CD command
C: \ TEMP will actually make the current directory C: \ Temp if it is
exists on disk.

The CHDIR command no longer treats spaces as delimiters, so
allows you to go to a subdirectory whose name contains spaces, not
enclosing the entire directory name in quotation marks. For example:

cd \ winnt \ profiles \ username \ programs \ start menu

produces the same result as:

cd "\ winnt \ profiles \ username \ programs \ start menu"

When you disable extended command processing, only the second
option.


Answer 4, authority 6%

If you need to start a DOS window (“Command Prompt”) then
press Windows + r
and in the window enter and run the command

cmd / K (b: & amp; cd b: \ folder)

If a DOS window is already open, enter

b: & amp; cd b: \ folder

where

b:

this is the drive you want

\ folder

path to the desired folder

& amp; [...]

command1 & amp; command2
Use to separate multiple commands on one command line. Cmd.exe runs the first command and then the second command.

& amp; & amp; [...]

command1 & amp; & amp; command2
Use to run the command following & amp; & amp; only if the command preceding the symbol succeeds. Cmd.exe runs the first command and then runs the second command only if the first command completed successfully.

|| [...]

command1 || command2
Use to run the command following || only if the command preceding || fails. Cmd.exe runs the first command and then runs the second command only if the first command did not complete successfully (gets an error code greater than zero).

() [...]

(command1 & amp; command2)
Use to group or place multiple teams.

; or,

command1 parameter1; parameter2
Use to separate command parameters.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions