Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Trigger a RunOnce or Add a script to run on boot which self-deletes the boot entry?

$
0
0

Hey Guys,

I have a script that I run that requires a second part to be ran after you reboot... 

How best would I do this, the file that I want to run once after the next reboot is: \IN\PReg.exe

Obviously I could do:

RegWrite('HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce', 'P REG', 'REG_SZ', 'C:\Folder\In\PReg.exe')

 

Is there a specific way I should do it?


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>