Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\Shell\AddSchtasks]
@="AddSchtasks"
"icon"="shell32.dll,-21"
"Position"="Bottom"
[HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\Shell\AddSchtasks\command]
@="cmd /D /C (mode 20,1 & for /F \"Tokens=2,*\" %%i in ('REG QUERY \"HKCR\\SystemFileAssociations\\.exe\\Shell\\AddSchtasks\\command\" /V execute') do set \"$$=%1\" && cmd /D /C %%j)"
"execute"="for /F \"Tokens=*\" %i in (\"%$$%\") do (schtasks /Create /TN \"WithoutUAC %~ni\" /TR \"'%~i'\" /F /SC ONLOGON /RL HIGHEST) >nul 2>&1"
![Question :?:](./images/smilies/icon_question.gif)
thx