I work on a project which is hosted in IIS, and therefore in order to debug this site I have to run Visual Studio as an administrator.
The problem is, when opening a file in Windows Explorer, I would like to open it in the current instance of Visual Studio (or a new instance if that is not the case).
I've had partial success, using a batch file with the following contents:
cd "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE"
devenv /Edit %1
However, this opens Visual Studio as the currently logged-in user, and NOT as Administrator (so when I have an instance already open as administrator it opens a new instance anyway).
So the question is; how can I have the file open in the current instance, as Administrator?
You could probably make some kind of AutoHotkey script to automate it, depending on how often you need to do this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With