This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :: Source: https://stackoverflow.com/questions/1894967/how-to-request-administrator-access-inside-a-batch-file | |
| :: Source: https://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights | |
| :: batch code to request admin previleges, if no admin previleges | |
| fltmc >nul 2>&1 | |
| if NOT %errorLevel% == 0 ( | |
| powershell start -verb runas '%0' am_admin & exit /b | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [-HKEY_CLASSES_ROOT\Directory\shell\git_gui] | |
| [-HKEY_CLASSES_ROOT\Directory\shell\git_shell] | |
| [-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\git_gui] | |
| [-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\git_shell] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_gui] | |
| [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_shell] | |
| ; .bat version below |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| explorer.exe shell:appsFolder\Microsoft.Office.OneNote_8wekyb3d8bbwe!microsoft.onenoteim | |
| START /MIN C:\Windows\system32\osk.exe | |
| exit | |
| REM "C:\Windows\System32\cmd.exe" /k explorer.exe shell:appsFolder\Microsoft.Office.OneNote_8wekyb3d8bbwe!microsoft.onenoteim & "C:\Windows\system32\osk.exe" |
NewerOlder