Windows 8.1 and CD command in Command Line

11,898

each drive has its own concept of the current directory. CD changes the current directory, and if you specify a drive letter, it changes the current directory of that drive, rather than (by default) the current drive.

If you want to change the current directory of a different drive, and switch the current drive to that drive also, you use /d:

CD /d D:\
Share:
11,898
Bohdan Vorona
Author by

Bohdan Vorona

Updated on June 05, 2022

Comments

  • Bohdan Vorona
    Bohdan Vorona almost 2 years

    I run command line of Windows 8.1 as Admin. I'm trying change disk from C:\ to D:.

    My command:

    enter image description here

    As you can see CD can change only in current (C:) disk. How can I move to D?

    I looked for disk D properties and there Admin have all access to all activity:

    enter image description here

  • user3553031
    user3553031 almost 10 years
    IMHO, one of the most annoying things about cmd. But that's how it has worked since drive letters were introduced in DOS ~30 years ago.
  • Mr. Noddy
    Mr. Noddy about 6 years
    Thanks you sir... it worked. It worked even without last "\" character.