Try 'scriptinganswers.com' ... My friend Don Jon runs it.
They're all about the scripts there. :-)
I recently stumbled across this site whilst looking for a script to allow me to remotely switch off PC's. The script provided on the site gave me some hope, however I am unable to get it to work.
I am a complete novice when it comes to scripting, and most likely it's me doing something stupid.
I've copied the script into notepad, saved the file as shutdown.bat. I've also created a .txt file called shutdown in the same folder and entered a test PC name. However it doesn't shutdown the PC, and i cannot slow the script down in order to see where it's going wrong.
Any help anyone can provide would be greatly appreciated.
Try 'scriptinganswers.com' ... My friend Don Jon runs it.
They're all about the scripts there. :-)
start - run - cmd
shutdown -s
the script is written in vb script, so instead of saving as a .bat you should save as a .vbs and invoke it from a command line using cscript (I think - I'm not big on VBS)
as a general tip, if you did have abatch file that fails very quickly you could either:
open a cmd prompt and run it from there so it does not open and close it's own window
or add a pause command at the end (which will not work with this one since it's VB)
This is always better than double-clicking and missing all the fun