- Home
·
- Registry
·
- Create or Delete an autorun for your program in the registry with one line of code for each (using
Create or Delete an autorun for your program in the registry with one line of code for each (using
Create or Delete an autorun for your program in the registry with one line of code for each (using shell and command prompt)!
Rate Create or Delete an autorun for your program in the registry with one line of code for each (using
(2(2 Vote))
'To create autorun
'Where autorunapp is the name of the value. You can replace it to anything, but dont put spaces
a = Shell("cmd.exe /c reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v AutorunApp /t REG_SZ /d """ & App.Path & "\" & App.EXEName & ".exe"" /f", 0)
'To remove autorun
'Where autorunapp is the name of the value. You can replace it to anything, but dont put spaces
a = Shell("cmd.exe /c reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v AutorunApp /f", 0)
Create or Delete an autorun for your program in the registry with one line of code for each (using Comments
No comments yet — be the first to post one!
Post a Comment