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!

I need to know if you can pass parameters %1 %2 %3 %4 %5 %6 %7 %8 to t

Status
Not open for further replies.
Apr 27, 1999
705
US
I need to know if you can pass parameters %1 %2 %3 %4 %5 %6 %7 %8 to the VBScript code from a command line. For instance, can you do the following?<br>
<br>
C:\test.vbs TestFile.Txt 30<br>
<br>
The code will then check for TestFile.TxT and set off a timer.
 


fengshui1998,

Hey fengshui1998, your using my code name!!!! Stop that!
How did you get my code name?

The answer to your question is:

Set objArgs = Wscript.Arguments
argCount = objArgs.count

arg1 = objArgs(0)
arg2 = objArgs(1)


fegnshui1998
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top