Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Script Template

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,26947
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Script Template
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Script Template - 10/14/2005 1:34:18 AM   
  Country73


Posts: 716
Score: 8
Joined: 8/25/2004
From: USA
Status: offline
I created this "Script Template" for all of my scripts that are ran against multiple machines. You can still use this against one machine via the InputBox, but was created to run off of a "pclist.txt" which contains multiple machine names. Each machine should be on it's own line in this text file.

1. Forces the script to run in CScript mode. (For countdown purposes. CTRL + C can be used to kill the script)
2. Checks the date of the "pclist.txt" and asks if you still want to use it or not. (Helps to make sure you are using a current list of machines)
3. Verifies the machine is online before proceeding
4. Writes all offline machines to a csv file.

This script is ready to run, just supply your pclist.txt.
Currently you will just get an echo of "call function required", replace that with your function call.
If you have any questions / comments about this script, please contact me through the email function here at VBScript Forum.


      
 
 
Post #: 1
 
 RE: Script Template - 11/6/2005 12:08:59 AM   
  Cybertwister

 

Posts: 20
Score: 0
Joined: 11/6/2005
Status: offline
really good
thanx

(in reply to Country73)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Script Template Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts