Chapter 3 — Configuring the Computer
CK60 Handheld Computer with Windows Mobile User’s Manual 89
Example:
; use AutoCopy to copy the control panel from flash file store to windows.
autocopy.exe -S"\Flash File Store\System\Audio.cpl" -D"\Windows\Audio.cpl"
; use AutoCopy to move the control panel from flash file store to windows.
autocopy.exe -M1 -S"\Flash File Store\System\Audio.cpl" -D"\Windows\Audio.cpl"
AutoReg
The AutoReg (AutoReg.Exe) component adds registry information to the
Windows Mobile registry. It has no user interface and is configured
through command line arguments.
Usage:
AutoReg [-D] [-HKey] [-Q] “filename”
The return code from the process uses the standard error codes defined in
WinError.h.
Example:
; use AutoReg to install this registry information.
autoreg.exe "\Flash File Store\install.reg"
; use AutoReg to install this registry information. Delete the file afterwards.
autoreg.exe -D "\Flash File Store\install.reg"
; use AutoReg to extract registry information to a file.
autoreg.exe -HHKEY_LOCAL_MACHINE\Software\Intermec\Version "\version.reg"
The format of the input file, in this example, is the standard registry format
which should ease the creation of the input file since there are many
publicly available utilities to generate a registry file besides Notepad. One
example of a tool is the Microsoft Remote Registry Editor.
AutoCab
AutoCab (AutoCab.exe) extracts files, registry settings, and shortcuts from
Windows Mobile cabinet (.cab) files. The Windows Mobile startup
sequence invokes AutoCab as a part of AutoExec and AutoRun. During the
Windows Mobile startup sequence, AutoCab processes all CAB files in the
“\CabFiles” directory relative to the current location of Autocab, unless the
location is overridden by command line arguments. AutoCab can run as a
stand-alone program to install a CAB file or a directory of CAB files.
-D Deletes the registry file after successfully loading it. This allows for systems
that have hives implemented.
-H Saves the registry path, and all child entries, to the specific .reg registry file.
-Q Indicates whether a message box should appear when a fatal error occurs.
filename Fully qualified file name to read from or write to, encased in double quotes
to support spaces in paths or file names. See examples below.