Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling a vbscript and passign through a variable

Status
Not open for further replies.

collierd

MIS
Dec 19, 2001
509
DE
Hello

I am looking to create a script which will write a piece of text to a file based on what was externally passed to it

so, startdatetime.vbs writes the start time and date to a file (this I can do)
I want to pass an additional piece of data through to append to this file

i.e. startdatetime "ftp start" would allow it to write 'ftp start' to the file

There are many things I want to monitor the start of and I want to write one all encompasing script to do this rather than hard code the passed text in and write a script for each version

Any thoughts would be much appreciated

Thanks

Damian.
 
CScript readily accepts script parameters. See the FAQ here on where to find the MS Scripting documentation if you don't have it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top