RunScriptWithArguments

Similar to RunScript, launch another script from within the currently executing script, but with arguments.

UI Access NA
Parameters
Name Type Description
<ScriptPath> String

The name or full path of the script to execute. If the full path to the script is not specified, the software looks for the script in the following locations:

  • Personal library directory: "PersonalLib"
  • The PersonalLib directory can be specified in Tools > Options > General Options on the 'Project Options' tab.

  • User library directory: "userlib"
  • The UserLib directory can be specified in Tools > Options > General Options on the 'Project Options' tab.

  • System library directory: "syslib"
  • The SysLib directory can be specified in Tools > Options > General Options on the 'Project Options' tab.

  • Software installation directory
<Arguments> String The arguments to supply to the specified script.
Return Value

Long

the return code for the script method.

 

Python Syntax RunScriptWithArguments (<ScriptPath>, <Arguments>)
Python Example

oDesktop.RunScriptWithArguments

("C:/Project/test2.py", "foo")