AnsweredAssumed Answered

Processing VBScript Arguments

Question asked by .-.--.-- on Feb 16, 2018
Latest reply on Feb 16, 2018 by .-.--.--

I have a VBScript that can be run from either a Mentor application or the Windows environment.  The script requires a design folder name as an argument.  Within a Mentor app, the folder name is easily found, and executed using Gui.ProcessKeyin("run " & ScriptPath & " " & FolderName).  In Windows, I can either run from a command line, or drag and drop the folder onto the .vbs file (or its shortcut).  But the problem is having a consistent method for acquiring the argument.  In Windows, the argument is stored in WScript.Arguments.  In Mentor, the argument is stored in ScriptHelper.Arguments.  But, Windows does not recognize ScriptHelper, and Mentor does not recognize WScript.  So, what's the best way to reconcile this difference?  Thanks in advance.

Outcomes