9

Has anyone had success in getting SUBST to work in Windows 10?

In Windows 7 and prior, I could go into a command prompt (without admin privileges) and enter this command:

SUBST R: "C:\BlahBlah\XXX\YYY"

and an R: drive would appear in Explorer, mapped to the specified folder. This behavior seems to be broken in Windows 10, even if I run the command prompt with elevated privileges.

5
  • 1
    subst works perfectly, like always. Substr is not a dos command
    – Spörri
    Oct 7, 2015 at 15:34
  • @Sporri - When you say SUBST works perfectly, do you see your mapped drive letter show up in Explorer? I don't. The drive letter shows up "perfectly" within the command prompt window, but it does not seem to be propagated to the rest of the system.
    – Tom Baxter
    Oct 7, 2015 at 15:50
  • Yes, you might need to close all explorer windows and open a new one
    – Spörri
    Oct 7, 2015 at 15:53
  • @Sporri - Closing and Reopening Explorer did nothing.
    – Tom Baxter
    Oct 7, 2015 at 15:58
  • 1
    See my edit below.
    – bentek
    Oct 7, 2015 at 16:09

1 Answer 1

18

SUBST run through elevated command/PowerShell prompt only reflects in the elevated prompt and NOT in Windows Explorer (GUI).

Run the command WITHOUT elevation and you should see it in Explorer as a drive. Don't forget this virtual mapping will be cleared upon reboot, unless you make it permanent through the registry.


SUBST Command

2
  • 2
    Can we get more details on making it permanent using the registry? May 10, 2016 at 21:25
  • 1
    I wanted to know the same thing as @ScottBeeson . Happily answered by someone on superuser: superuser.com/questions/29072/…
    – Rob
    May 9, 2019 at 8:07

Not the answer you're looking for? Browse other questions tagged .