3 script control, 1 introduction to script control – Lenze PCMatic Operating system Windows CE4-2 Benutzerhandbuch

Seite 71

Advertising
background image



‚

69

3 Script Control

3.1 Introduction to Script Control

This tool is a script engine for Windows CE. By entering a script file it is possible to automate the
following operational functions

• Setting up and allocation of users
• Start-up of programs by means of the “Open” instruction
• Registration of DLLs
• Copying of files and directories
• Manipulation of the registration

The PCMatic device has the following memory organisation:

• Before the boot phase of the operating system, part of the main

memory is configured as RAM drive (in other words as equivalent to
a drive).

• Following this, the operating system files of the device image are

unpacked from the Flash memory into this drive.

• The operating system then boots itself from these files.

The next time the system is booted up, this process is repeated. It may
therefore be seen that the file system used by the operating system is not
persistent. It is only held temporarily in the main memory. For example,
if a program expects to find a file in the “Windows” directory, this file
must first be copied into the directory which is established only when the
system is booted up. To facilitate this task (and similar tasks), the
PCMatic device provides the “Script Control” components.

The program “APScriptCtrl.exe” can be started in a number of different ways:

Autostart

After a system boot, the file “Autostart.txt” is executed on the Compact
Flash card, if the corresponding option is activated in “Config Manager”
(see section 2.2). This form of start provides, for example, for the
installation of components on the computer’s system drive.

Double click on
“APScriptCtrl.exe”

If a double click is made on “APScriptCtrl.exe”, the program expects a
file in the same path as the program but with the ending “.txt”. For
example if “\Windows\APScriptCtrl.exe” is started with a double click it
expects the file “\Windows\ APScriptCtrl.txt”.

With transfer
parameters

If the program is started via the command line, all UNICODE text files
can be used as transfer parameters with a complete path definition.

Double click on

*.inst

A double click on a file with the ending “inst” similarly starts the
program.

Advertising