Well i am too lazy to even test this:
XP SHUTDOWN -r -t 10 Delayed reboot Reboot after a 10 seconds
delay.
Can be stopped during those 10 seconds using SHUTDOWN -a
XP SHUTDOWN -s -t 01 Delayed shutdown Shutdown after a 1
second delay, NO poweroff.
XP RUNDLL32 PowrProf.dll, SetSuspendState Activate suspend state
You can only call executables (.exe) if you set UseShellExecute to
false. To run
a dll when UseShellExecute is false, you can use "rundll32" to do this
as in:
Process myProcess = new Process();
ProcessStartInfo myProcessStartInfo =
new ProcessStartInfo("rundll32.exe" );
myProcessStartInfo.UseShellExecute = false;
myProcessStartInfo.RedirectStandardOutput = true;
myProcessStartInfo.Arguments= "url.dll ,FileProtocolHandler
www.microsoft.com";
myProcess.StartInfo = myProcessStartInfo;
myProcess.Start();
Regards,
Jeff
*** Sent via Developersdex
http://www.developersdex.com ***