'Log off:
System.Diagnostics.Process.Start("Shutdown.exe", "-l")
'Restart:
System.Diagnostics.Process.Start("Shutdown.exe", "-r")
'Shutdown:
System.Diagnostics.Process.Start("Shutdown.exe", "-s")
MJCM said:Hi,
here is a sample i have found on the net about shutting down the pc without the help of Shutdown.exe !!
Regards
MJCM