Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.
I'm trying to modify the standard script.vbs file for use with triggers. I'm trying to read the commandline arguments so I can use them to launch an exter exe. to do this, I am using the following code to iterate through the arguments: set objArgs = WScript.Arguments WScript.Echo "Total number of arguments: " & WScript.Arguments.Count for each strArg in objArgs WScript.Echo strArg next I always get Script error: Object required: 'WScript'. Reasearch tends to indicate that this is because wscrpt is not available, but a line later to create wscript.shell does work, so, to me, this reduces the potential that wscript not being available is the problem. Have any of you seen a similar problem and, if so what the blank did you do about it. I know I can kill my implementation if I can sole this problem, as it is the only real problem across the project. Thanks in advance for your assistance. Trevor