Monday, December 17, 2012

VB Shutdown, Restart, Log Off Code


VB 6.0 can be used to invoke shell script commands of the windows api with a code.
This shell script command can be used to perform shutdown or restart tasks..

Call Shell("Shutdown /s") 'to shutdown

Call Shell("Shutdown /r") 'to restart

Call Shell("Shutdown /l") 'to log off

Call Shell("Shutdown /a") 'to Abort

Thursday, December 13, 2012

Sunday, December 9, 2012