Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

sending computer to sleep

$
0
0
hi

i have a vbs that after two hours sends my computer to shutdown. this is the script

set shell = CreateObject("Wscript.Shell")

shell.run "shutdown.exe -s -t 7200"

i was wondering if there is any way i could change it to send my computer to sleep instead of shuting down?

any help would be appreciated

thanks

michael

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>