Is it possible to open files as administrator from inside Emacs on windows?
In Linux one can use tramp to open as administrator, by opening file with following path (/sudo::/path/to/file)?
However, the same file path fails to work in Windows (naturally). How can one request an elevation of privileges for a single file during Emacs session then?
If possible, I would like to avoid launching Emacs as administrator.
Possibly one must do some setup in Windows for that - which, if any? Maybe something like privileged network access?..
Emacs use sudo on Linux to edit files as administrator. sudo wouldn't necessarily be used on Windows to do the same thing.
– bbigras Nov 12 '15 at 15:43M-x report-emacs-bugand request it as a new feature for Tramp. If you can use "runas" to start a bash shell running as administrator (and have enough Unixy tools installed), then it should be fairly easy to extend Tramp's "su" and "sudo" support to use "runas". – Stefan Nov 15 '15 at 19:21