File.RunOnReboot

File.RunOnReboot ( 

string  Filename,

string  Args = "" )

Example 1

File.RunOnReboot(_TempFolder .. "\\setup.exe", "/W");

On the next system reboot the file "setup.exe" located in the user's temporary directory will be run with the command line argument "/W."

Note: _TempFolder is a built-in variable that contains the path to the user's system "Temp" folder.

See also:  Related Actions