For Programmers: Free Programming Magazines  


Home > Archive > VBScript > September 2004 > Running a shutdown from a txt file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Running a shutdown from a txt file
danbowden@gmail.com

2004-09-27, 8:55 am

Hey!

I have a report that creates a list of machines nightly that are
switched on. It puts them in a file called clients.txt with each
hostname followed by a new line.

This must be an easy thing to do but I have virtually no VBS Scripting
experience (I still use .bat files) But I would like to process each
machine in the list and run the shut down command on them.

In an Ideal world I would love to ping it and it is was not contactable
it could store it in a log file as HOSTNAME : (Whatever hostname) is
not contactable.

I have a bat file that does all of this but I would really love this in
VBS. Can anyone give me any clues on where to start. I have downloaded
a script repository but I just can't find what I am looking for
Thanks in Advance

Dan

ganesh

2004-09-28, 3:58 pm

Please post a sample of the clients.txt file. Also, if you post the bat
file contents, it wouldbe pretty easy to understand what you are
looking for and do the same with VBS

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com