42
17
So, I know you can create a shortcut to an administrator-level command prompt (as described in this question), but what I'm seeing is that whenever I use such a shortcut, it always drops me into c:\windows\system32\ path.
I've tried specifying that shortcut's properties to set the "start in" path I need, but to no avail. It seems any time I run cmd.exe "As Administrator," it completely disregards the shortcut's paths and sticks to c:\windows\system32\
Any suggestions on how to get Windows 7 to respect the shortcut's "start in" path?
But what is the reason? – ziyuang – 2015-02-05T01:04:17.123
You're still specifying a fixed directory instead of landing in the same directory from which the shortcut is activated. – bvj – 2015-03-11T23:58:15.580
If you want to run a program in the directory, append (without quotes) "& myprogramname.exe" at the end of the command line above. – trebormf – 2016-03-23T20:40:24.163
"pushd c:" would also work when setting up a administrative cmd shortcuts – bshea – 2018-08-12T16:29:01.530