Jetter AG
Programming | 8
User Manual – JCM-501-E01
49 / 65
Processing
commands
The Autostart function processes the commands in descending order. Further-
more, this function lets you insert jumps into the processing sequence. A jump is
defined by the keyword
goto
and a destination. The destination must be pre-
ceded by a colon (:).
A
simple jump
is defined as follows:
goto
end
{skipped block}
:end
A
conditional jump
is defined as follows:
if
{condition}
goto
end
{skipped block}
:end
Available
commands
The commands correspond to common Windows
®
command line syntax.
8.7.5 Example of a command file
Task
Add new functions to an installed JCM-501-E01. To this end, the following modifi-
cations are required:
■
Operating system update
■
New application program
■
New values for some of the registers
Solution
You copy the required files to a USB flash drive and create a command file for
the Autostart function.
USB flash drive -
Content
The USB flash drive contains the following files:
■
The
autostart.bat
file
■
The new OS
■
A *.da file containing the new register values
■
A
start.ini
file and a *.es3 file containing the new application program
Command file
@echo off
if not exist \app\autostart.exe goto end
if exist \app\update.ini goto end
if exist \app\usb_update_process_marker goto dm
echo \data\update\jvm_ce0_1.00.0.04.os >\app\update.ini
md \data\update
copy \%1\jvm_ce0_1.00.0.04.os \data\update\jvm_ce0_1.00.0.04.os
echo >\app\usb_update_process_marker
md \app\progtest
copy \%1\progtest\progtest.es3 \app\progtest\progtest.es3
copy \%1\register.da \app\register.da
del \System\reset.exe
goto end
:dm
del \app\usb_update_process_marker
:end