I'm wondering if anyone knows how to execute a Windows batch file or other script that can open a configuration file in a text editor as an administrator.
I have a bunch of config files that need to be edited on a normal basis that are hidden deep in a bunch of subfolders protected from normal user access. It's really annoying running the text editor as administrator and then manually browsing through a dozon subfolders.
..or put a shortcut in your shortcut - create a shortcut to the editor of your choice, then edit the shortcut properties to set the compatibility settings to always open as admin - then right-click on the type of file (again, this relies on the extension) and go to open with,.. choose the shortcut you just created rather than the editor itself. from then on i think it should automatically ask if you want to run as admin when you try to open one of those files. that may be bollocks, i just tested it by making a shortcut and then typing "start <shortcut name> <document path>" for notepad++ and it seemed to work fine.
Also, if you have the option to install notepad++, it remembers the files you leave open so you could just launch it as admin and not close the child windows.