Hardware manual

Impact Reference Guide Run a Scriptor file
6-25 Datalogic Automation Inc.
All distances are in pixels. Invalid or missing values may place the control panel off screen. There is a space
between each of the option values.
This example command line opens a window and locates it on the screen at 0, 0 with a size of 500 by 500
pixels (the option is in bold):
CPMRE
"C:\Datalogic\IMPACT\Applications\jre\bin\javaw.exe" -XX:+UseParallelGC
-Xmx400m -Xms64m -Xrs -jar "C:\Datalogic\IMPACT\Applications\CPM\CPMRE.jar"
-s 0 0 500 500
Run a Scriptor file
When this option is used, CPMRE runs a CPM Scriptor script file when it starts. You must also load the con-
trol panel application file that the script file references. IMPORTANT: File names are case sensitive.
Add the following options to the command line:
-scr "script path name\script file name.bsh" -p "cp path name\cp file name.cp"
where "script path name" is the folder that contains the script file named "script file name.bsh" and "cp path
name" is the folder that contains the control panel application file named "cp file name.cp."
NOTE: The script file path and name must be enclosed in quotes and include the "bsh" extension. The path
name is case sensitive. There is a space between the option and the first quotation mark.
This example command line runs a script named "script.bsh" in the folder named "C:\script folder" and loads
the application file named "inspect.cp" in the folder named "C:\control folder" (the option is in bold):
CPMRE
"C:\Datalogic\IMPACT\Applications\jre\bin\javaw.exe" -XX:+UseParallelGC
-Xmx400m -Xms64m -Xrs -jar "C:\Datalogic\IMPACT\Applications\CPM\CPMRE.jar"
-scr "C:\script folder\script.bsh" -p "C:\control folder\inspect.cp"
NOTE: This command line may be too long to include in the shortcut. See “Access a text file containing a
list of command line options” on page 6-22.
Run a Scriptor file and display a control panel application
Use this option to display a control panel application when a Scriptor script file starts and runs. IMPOR-
TANT: File names are case sensitive.
Add the following options to the command line:
-v -scr "script path name\script file name.bsh" -p "cp path name\cp file name.cp"
where "script path name" is the folder that contains the script file named "script file name.bsh" and "cp path
name" is the folder that contains the control panel application file named "cp file name.cp."
NOTE: The script file path and name must be enclosed in quotes and include the "bsh" extension. The path
name is case sensitive. There is a space between the option and the first quotation mark.
This example command line runs a script named "script.bsh" in the folder named "C:\script folder" and loads
the application file named "inspect.cp" in the folder named "C:\control folder" (the option is in bold):
CPMRE
"C:\Datalogic\IMPACT\Applications\jre\bin\javaw.exe" -XX:+UseParallelGC
-Xmx400m -Xms64m -Xrs -jar "C:\Datalogic\IMPACT\Applications\CPM\CPMRE.jar" -v -
scr "C:\script folder\script.bsh" -p "C:\control folder\inspect.cp"