Intermec cn30 User Guide

Page of 196
Chapter 3 — Configuring the CN30
CN30 Mobile Computer User’s Manual
105
The return code from the process uses the standard error codes defined in 
WINERROR.H.
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 pub-
licly available utilities to generate a registry file besides Notepad. One exam-
ple 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.