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.

12
  • 9
    Instead of cd, use pushd, then it will also work on other drives than c: and even unc shares.
    – ths
    Commented Apr 21, 2016 at 6:39
  • 3
    To make the admin status more visible, window title and window color can be set. Example: `cmd.exe /K title Elevated && color 1a && cd /D c:` Commented Apr 21, 2016 at 13:56
  • 2
    @ths pushd works for unc where cd doesn't, indeed. But your slight suggestion that cd won't change to other drives is incorrect, see cd /d (as you probably know).
    – barlop
    Commented Apr 21, 2016 at 13:58
  • cd /d still can't cover unc paths... so a moot point in fact
    – JasonXA
    Commented Sep 15, 2017 at 2:53
  • @JasonXA that has already been said in comment in the comment right above yours, as well as in the first comment.
    – barlop
    Commented Sep 15, 2017 at 4:50