4
I have a subst
command in my startup folder. It adds my Visual Studio projects to a different drive so that it is easier to access, and also so that the path doesn't get too long.
Occasionally I need to use the elevated privileges on something in that virtual drive (e.g. attach to w3wp.exe). It seems that the subst
command is not carried over to the elevated privileges and I often get "folder does not exist" type errors.
What I have:
subst T: E:\Code\SourceControl
What I want (clearly sudo
doesn't work on windows, but you get the idea):
subst T: E:\Code\SourceControl
sudo subst T: E:\Code\SourceControl
tl;dr: Is there a way to make the subst run for the admin account at the same time as the main account at startup?
3For the last step, I expect that logging out and logging in again is all you need to do. – Scott – 2017-11-08T22:37:27.813