You can always simply admit defeat and start an elevated privileged emacs session. There are many ways to do this, and this page lists them, including automatically launching the file as an administrator.
This is probably not exactly what you want. Otherwise, you can create a script that takes the file name as the first argument, and then simply binds this program to a shortcut or something like admin-save. If you give administrator privileges and then call the file with the buffer name as the first argument, and its purpose will be the second, you should be good.
the script may be a simple BAT file, something ala (I'm not in a windows window, so I can not check it for myself)
:: Administrator-copy.bat copies a file with adminstrator privileges. :: Remember to give it administrator privileges! : START COPY %1 %2 : END
But this is a rather clumsy decision.
How to raise an already running application, I do not know.
Haakon lΓΈtveit
source share