As part of a very simple cmd.exe install script, I need to run a program the next time the machine reboots. I don’t want it to run after that (it’s a one-shot configuration tool).
The program will actually be another cmd.exe script but any example should do since I can run cmd /c on the script itself.
What’s the best way to go about doing this?
You could use the
SOFTWARE\Microsoft\Windows\CurrentVersion\RunOncekeyThis VB script could help. Extract: