CMD cannot go to a Drive Letter

Discussion in 'Windows 8' started by ian82, Nov 4, 2013.

  1. ian82

    ian82 MDL Expert

    Mar 7, 2012
    1,147
    303
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,770
    1,101
    60
    #2 Mr Jinje, Nov 4, 2013
    Last edited by a moderator: Apr 20, 2017
    try either "e:" or "cd /d e:"

    Code:
    cd /d e:
    You need the '/d' switch to 'switch' drives.

     
  3. Enigma256

    Enigma256 MDL Senior Member

    Jan 17, 2011
    357
    309
    10
    Um, that's by design. And it's been like that since the days of DOS. The command prompt remembers the current directory for each drive separately. So C: has a current directory, D: has a current directory, etc. CD only changes the current directory for that drive--it does not actually switch you to that drive. You need to issue a separate command to change to that drive.
     
  4. hbhb

    hbhb MDL Expert

    Dec 15, 2010
    1,017
    263
    60
    wasnt what you said called this;
    images.jpg

    :D
     
  5. Enigma256

    Enigma256 MDL Senior Member

    Jan 17, 2011
    357
    309
    10
    #5 Enigma256, Nov 4, 2013
    Last edited by a moderator: Apr 20, 2017
    Why maintain separate current directories for each drive? Because it can be useful:

    Code:
    :: assume you are somewhere in C:
    
    :: creates an empty file named foobar in the root of D:
    copy nul D:\foobar
    
    :: creates an empty file named foobar in the root of D:
    chdir D:\
    copy nul D:foobar
    
    :: creates an empty file named foobar in D:\test
    chdir D:\test
    copy nul D:foobar
    
    :: if you have a lot of file operations, you can save a lot of typing this way
    :: old method:
    copy file1 D:\long\and\annoying\path
    move file2 D:\long\and\annoying\path
    del D:\long\and\annoying\path\file3
    rename D:\long\and\annoying\path\file4 D:\long\and\annoying\path\file5
    
    :: new method:
    cd D:\long\and\annoying\path
    copy file1 D:
    move file2 D:
    del D:file3
    rename D:file4 D:file5
     
  6. BigW

    BigW MDL Member

    Apr 25, 2010
    198
    53
    10
    Well if someone finds an unexpected, never before used thing that somhow gets the Windows 8 h8er confused, Windows 8 gets blamed for it. In all seriousness this case of Windows 8 bashing prooves that ian82 never used a Commandline in Windows (or DOS) even before. This means he only USED the OS and never had any contact to the inner workings or deeper settings (cmd) of a Windows or DOS. An expert in h8ing Windows 8 but not in knowing!

    An Expert in h8ing Windows 8 but not knowing anything of realy using and do advanced things with computers in any way! The mainstream thinking of Windows 8 is driven by such people.

    Learn at least the realy low concepts of the commandline (Powershell would be very far away from your horizon of knowlage that I only mention it here in this bracets) before you say any bad things about Windows 8!
     
  7. ian82

    ian82 MDL Expert

    Mar 7, 2012
    1,147
    303
    60
    #7 ian82, Nov 5, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Thanks a lot man! that worked like a charm! I could've sworn I never had to do this in Windows 7 command prompt
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. ian82

    ian82 MDL Expert

    Mar 7, 2012
    1,147
    303
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. nitins60

    nitins60 MDL Junior Member

    Apr 9, 2010
    74
    356
    0
    I really wanted to see how it can be done in *your windows 7* command prompt.

    :rolleyes: :popcorn:
     
  10. EFA11

    EFA11 Avatar Guru

    Oct 7, 2010
    8,719
    6,741
    270
    #10 EFA11, Nov 5, 2013
    Last edited by a moderator: Apr 20, 2017
  11. ian82

    ian82 MDL Expert

    Mar 7, 2012
    1,147
    303
    60
    ohhhhhhh right! it's just that I haven't used DOS in like 3 years

    thanks bro
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,466
    990
    60
    OR

    CD /D "Drive Letter:"

    example: "CD /D E:"
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. ian82

    ian82 MDL Expert

    Mar 7, 2012
    1,147
    303
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. nitins60

    nitins60 MDL Junior Member

    Apr 9, 2010
    74
    356
    0
    lol. I was saying how his commands worked in Windows 7 as he told. I was being sarcastic :biggrin:
     
  15. Enigma256

    Enigma256 MDL Senior Member

    Jan 17, 2011
    357
    309
    10
    #17 Enigma256, Nov 5, 2013
    Last edited: Nov 5, 2013
    The problem with our dear friend is that he doesn't know anything, yet he struts around like he's some kind of expert. Observe, for example, how he goes around telling everyone to install Intel's INF files (which aren't even drivers) to fix problems that aren't even related to drivers to begin with. He characterizes the Pro features in 8.1 as "bloat" without realizing that the system files for that "bloat" are always present regardless of whether one uses Pro or Core. And here, he comes across a long-standing feature of the Microsoft command line that he is unfamiliar with, but instead of spending a little time to research it, he gets out his megaphone and blames it on the new OS. And then when someone calls him out on this, he indignantly pulls out his favorite Castle gif as if it's such a scandal to suggest that he may be in the wrong.

    It's okay for someone to be ignorant--I have absolutely no problems with newbies asking for help or clarification. But it's bloody annoying when someone is ignorant but doesn't realize it, and subsequently goes around loudly spreading misconceptions and misinformation.
     
  16. OldMX

    OldMX MDL Addicted

    Jul 30, 2009
    539
    229
    30
    Enigma, thanks...thanks...thanks...
     
  17. ian82

    ian82 MDL Expert

    Mar 7, 2012
    1,147
    303
    60
    BUWHAHAHAH

    MUWHAHAHAH :laie:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. Koh Jun Dong

    Koh Jun Dong MDL Novice

    Oct 19, 2013
    16
    2
    0
    Thanks mate!:worthy:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...