Skip to content

Instantly share code, notes, and snippets.

@deskobj
Last active June 7, 2019 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deskobj/1d48c3a52166406a9bfff5e17a67a8d9 to your computer and use it in GitHub Desktop.
Save deskobj/1d48c3a52166406a9bfff5e17a67a8d9 to your computer and use it in GitHub Desktop.
Add "runas" explorer shell menu entry for .reg files
REGEDIT4
; - or - Windows Registry Editor Version 5.00
; Registry files in format REGEDIT4 cannot contain Unicode characters with a code value greater 255.
; Read more: https://stackoverflow.com/questions/36785645
; Invoke as:
; start .REG-runas-REGEDIT_EXPORT.REG
[HKEY_CLASSES_ROOT\regfile\shell\runas\command]
@="regedit \"%1\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment