Aug 5, 2003 #1 evilkalah Technical User Jul 30, 2003 11 BE Can i give a parameter to a vbscript in windows and how can i call them up? for example like in dos format c: so i can use th c: as parameter and in with varnaam it is in
Can i give a parameter to a vbscript in windows and how can i call them up? for example like in dos format c: so i can use th c: as parameter and in with varnaam it is in
Aug 5, 2003 1 #2 PHV MIS Nov 8, 2002 53,708 FR Calling: Code: Wscript YourScript.vbs Arg1 Arg2 ... ArgN or in console mode Code: Cscript YourScript.vbs Arg1 Arg2 ... ArgN In your script: Code: Set objArgs = WScript.Arguments For I = 0 to objArgs.Count - 1 WScript.Echo objArgs(I) Next Hope This Help PH. Upvote 0 Downvote
Calling: Code: Wscript YourScript.vbs Arg1 Arg2 ... ArgN or in console mode Code: Cscript YourScript.vbs Arg1 Arg2 ... ArgN In your script: Code: Set objArgs = WScript.Arguments For I = 0 to objArgs.Count - 1 WScript.Echo objArgs(I) Next Hope This Help PH.
Aug 5, 2003 Thread starter #3 evilkalah Technical User Jul 30, 2003 11 BE maybe it isn't clear start.vbs varstart=yes or something else that i wanne know how it works and how to read the value of it in the code Upvote 0 Downvote
maybe it isn't clear start.vbs varstart=yes or something else that i wanne know how it works and how to read the value of it in the code
Aug 5, 2003 Thread starter #4 evilkalah Technical User Jul 30, 2003 11 BE thx that was it Upvote 0 Downvote