<< Click to Display Table of Contents >> Navigation: Reference (Scripting) > Command Line Syntax |
The Docklight Scripting application supports command line arguments to load (and run) predefined project or script files. Use the following command syntax:
Docklight_Scripting.exe [ -r ] [ -m ] [ -i ] [ projectPathName.ptp ] [ scriptPathName.pts ]
The Docklight scripting command line has these parts:
Part |
Description |
-r |
Optional argument, used in combination with scriptPathName.pts. Runs the script immediately. If no run-time error or user stop occurs, the Docklight Scripting application is closed after the script execution ends. |
-m |
Optional argument. Minimize the Docklight Scripting application window on startup. |
-i |
Optional argument. Invisible operation / no main window. Useful in combination with the -r option and scriptPathName.pts. |
projectPathName.ptp |
Optional. Loads the Docklight project file projectPathName.ptp |
scriptPathName.pts |
Optional. Loads the Docklight script file scriptPathName.pts |
Remarks
If your script uses the StartLogging or the FileInput / FileOutput interface, and you just provide a file name, but not a complete directory path as a parameter, Docklight Scripting will use the current script / project directory.
Example
Docklight_Scripting.exe -r C:\myScript.pts
Loads the Docklight script file C:\myScript.pts and executes it.