Intermec PD42 Fingerprint Developer's Guide (old) - Page 46

Making Copies of Programs, Renaming a Program, Saving in CompactFlash Memory Cards, Creating - firmware upgrade

Page 46 highlights

Chapter 2 - Understanding Fingerprint Syntax Making Copies of Programs The easiest way to copy a program is to use a COPY statement. Optionally, you can include directory references in the statement. The next example copies a program from the permanent memory to a memory card, and gives the copy a new name: COPY "/c/FILELIST.PRG","card1:COPYTEST.PRG" If you LOAD a program and then SAVE it under a new name or in another directory, you will create a copy of the original program. The next example creates a copy of the program LABEL1.PRG and gives the copy the name LABEL2.PRG: LOAD "LABEL1.PRG" SAVE "LABEL2.PRG" Renaming a Program To rename a program (or any other file), LOAD it, SAVE it under a new name, and finally KILL the original program. Example (renames LABEL1.PRG with the name LABEL2.PRG): LOAD "LABEL1.PRG" SAVE "LABEL2.PRG" KILL "LABEL1.PRG" Saving in CompactFlash Memory Cards Programs can be saved or copied to a DOS-formatted Compact Flash memory card ("card1:"). Directories are not supported. In addition, Intermec Shell has an application that allows you to download files from the host directly to a CompactFlash memory card using the Zmodem communication tool in order to create firmware upgrade cards. See the printer user's guide for more information. Note: The printer will not recognize a memory card unless it has been inserted in the memory card slot before the printer is switched on. Creating a Startup Program The MKAUTO.PRG program is used to create autoexec.bat-files, which are programs that are loaded and run automatically as soon as the power is switched on and the printer is initialized. Usually, a startup program contains some kind of loop which makes it run infinitely, awaiting some input or action from the operator. There can be one startup file stored in each of three main parts of the printers memory. If there are more startup files, only one will be selected based on the following priority: 1 An AUTOEXEC.BAT file stored in a CompactFlash memory card, provided the card was inserted in the printer before startup. 30 Intermec Fingerprint Developer's Guide

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187

Chapter 2 — Understanding Fingerprint Syntax
30
Intermec Fingerprint Developer’s Guide
Making Copies of Programs
The easiest way to copy a program is to use a COPY statement. Optionally, you can
include directory references in the statement.
The next example copies a program from the permanent memory to a memory card,
and gives the copy a new name:
COPY “/c/FILELIST.PRG”,“card1:COPYTEST.PRG”
If you LOAD a program and then SAVE it under a new name or in another directory,
you will create a copy of the original program.
The next example creates a copy of the program LABEL1.PRG and gives the copy the
name LABEL2.PRG:
LOAD “LABEL1.PRG”
SAVE “LABEL2.PRG”
Renaming a Program
To rename a program (or any other file), LOAD it, SAVE it under a new name, and
finally KILL the original program.
Example (renames LABEL1.PRG with the name LABEL2.PRG):
LOAD “LABEL1.PRG”
SAVE “LABEL2.PRG”
KILL “LABEL1.PRG”
Saving in CompactFlash Memory Cards
Programs can be saved or copied to a DOS-formatted Compact Flash memory card
(“card1:”). Directories are not supported.
In addition, Intermec Shell has an application that allows you to download files
from the host directly to a CompactFlash memory card using the Zmodem
communication tool in order to create firmware upgrade cards. See the printer
user’s guide for more information.
Creating a Startup Program
The MKAUTO.PRG program is used to create autoexec.bat-files, which are
programs that are loaded and run automatically as soon as the power is switched on
and the printer is initialized. Usually, a startup program contains some kind of loop
which makes it run infinitely, awaiting some input or action from the operator.
There can be one startup file stored in each of three main parts of the printers
memory. If there are more startup files, only one will be selected based on the
following priority:
1
An AUTOEXEC.BAT file stored in a CompactFlash memory card, provided the
card was inserted in the printer before startup.
Note:
The printer will not recognize a memory card unless it has been inserted in the
memory card slot before the printer is switched on.