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..
Its code is as follows :
shell ("shutdown.exe -s -t00")
NOTE : In the above code, -s indicates shutdown, we can also use -r for restart and -l for log off.
also -t represents the time interval before the performable operation and the tow digit number next to -t is the interval in seconds.