Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 85
Chapter 2 Program Instructions
FILENAME$
Field of Application
Function returning the names of the les stored in the speci ed part
of the printers memory.
Syntax FILENAME$[(<sexp>)]
<sexp> is the name of the memory device from which the rst
le name (in alphabetical order) will be listed. Parts of
le names and wildcards (*) are allowed. Maximum size
is 30 characters.
If <sexp> is omitted, the next le name in the same memory
device is listed. Can be repeated. When there are no les left
to list, the output string will be empty.
Remarks
The speci ed memory device must be mounted. The le name must
correspond to the name of the le stored in the memory device in regard of
upper- and lowercase characters. Wildcards (* = ASCII 42 dec.) can be used.
The list may include all type of les. Even system les, that are preceded by
a period character (for example .FONTALIAS), may be listed. No device
names are included in the listed le names.
Example
This example shows how all les in "rom:" with the extension .PRG
are listed:
10 FNAME$ = FILENAME$("rom:*.PRG")
20 WHILE FNAME$<> ""
30 PRINT FNAME$
40 FNAME$ = FILENAME$
50 WEND
RUN
yields for example:
ERRHAND.PRG
FILELIST.PRG
LBLSHTXT.PRG
LINE_AXP.PRG
LSS-SENSOR.PRG
MKAUTO.PRG
SHELLXP.PRG
WINXP.PRG