Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 10
    Minor correction: E:\> cd C:\Users\jessy actually changes the "current" directory on drive C: to \Users\jessy -- so even though you're still on drive E:, the following C: command would put you into C:\Users\jessy.
    – Jim Davis
    Commented Dec 5, 2022 at 17:46
  • 2
    Or just start using Powershell already where cd e:\ would work.
    – n0rd
    Commented Dec 5, 2022 at 20:30
  • 2
    Lots of fun stuff that's been forgotten. Related to this, a path of E:something.txt refers to a file in the current directory on E:, which may be different from the root :)
    – hobbs
    Commented Dec 6, 2022 at 16:25
  • 2
    Yet another option is to use the pushd command, which can change both drive and directory: pushd E:\ or pushd E:\mydata etc. (You can then later use the popd command to return to the original drive/directory.)
    – printf
    Commented Dec 6, 2022 at 20:01
  • Another option to save you a line, you can do E: && cd \MyData
    – NocTurn
    Commented Jun 28, 2023 at 9:47