Advertisement
calfred2808

shell command

Mar 26th, 2016
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.47 KB | None | 0 0
  1. 'hibernate
  2. System.Diagnostics.Process.Start("ShutDown", "/h")
  3.  
  4. 'restart
  5. System.Diagnostics.Process.Start("ShutDown", "/r")
  6.  
  7.    ''Shell ("Shutdown -r -t 5")  
  8.  
  9.         ' Switches:
  10.         '   -l  Log off profile
  11.         '   -s  Shut down computer
  12.         '   -r  Restart computer
  13.         '   -f  Force applications to close
  14.         '   -t  Set a timeout for shutdown
  15.         '   -m \\computer name (Shutdown remote computer)
  16.         '   -i  Show the Shutdown GUI
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement