Intermec PM43/PM43c Fingerprint Developer's Guide (PC23d, PC43d/t, PM23c, PM43 - Page 44

Using Directories in the Printer File System, Using Path Shortcuts

Page 44 highlights

Chapter 3 - Managing Files Using Directories in the Printer File System The read-only memory (/rom) and the read/write permanent storage memory (/c) in the printer support the use of directories. However, directories cannot be used in any other parts of the memory. Use a slash character (/) to separate directories and files, as in the path "/c/DIR1/ DIR2/FILE". The maximum length of a path is 255 characters. Use the slash only to indicate directories in /c or /rom, as other memory partitions (such as "net1:") do not support directories. Note: For backward compatibility, "c:" is equivalent to "/c", and "rom:" is equivalent to "/rom". New applications should always use "/rom" or "/c". These Fingerprint commands are used when working with directories: • MKDIR creates a new directory in the printer permanent memory. • CURDIR$ returns the current directory as the printer stores it. • DIRNAME$ returns the directory names in a specified part of printer memory. The FILES command gives a size of 0 for directories to minimize impact on applications that parse the output. The FILENAME$ function only reports files to minimize impact on applications that use FILENAME$ to get file listings. Note: For more information on commands, see the Fingerprint Command Reference Manual. Using Path Shortcuts As a shortcut, each directory (including the root directories) contains a "parent directory". Use two periods (..) to change to the parent directory. Send the FILES,A command to list the files in the parent directory. Each directory also has a reference to itself ("."), that is, "/c/./DIR1/./../ FILE" refers to "/c/FILE" (or, using the legacy format, to "c:FILE"). Example: CHDIR "/c/DIR1/DIR2" COPY "../DIR3/FILE", "FILE" CHDIR ".." CHDIR "../" Changes the current directory. Copies /c/DIR1/DIR3/FILE to /c/DIR1/DIR2/FILE. Goes up to "/c/DIR1". Goes up to /c. Note that a trailing slash can be used. Note: While a file or directory name can contain all printable characters except ":" (colon) and "/" (slash), only "/c" supports using directories. 32 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

Chapter 3 — Managing Files
32
Fingerprint Developer’s Guide
Using Directories in the Printer File System
The read-only memory (/rom) and the read/write permanent storage memory (/c) in
the printer support the use of directories. However, directories cannot be used in any
other parts of the memory.
Use a slash character (/) to separate directories and files, as in the path “/c/DIR1/
DIR2/FILE”. The maximum length of a path is 255 characters. Use the slash only to
indicate directories in /c or /rom, as other memory partitions (such as “net1:”) do
not support directories.
These Fingerprint commands are used when working with directories:
MKDIR creates a new directory in the printer permanent memory.
CURDIR$ returns the current directory as the printer stores it.
DIRNAME$ returns the directory names in a specified part of printer memory.
The FILES command gives a size of 0 for directories to minimize impact on
applications that parse the output.
The FILENAME$ function only reports files to minimize impact on applications
that use FILENAME$ to get file listings.
Using Path Shortcuts
As a shortcut, each directory (including the root directories) contains a “parent
directory”. Use two periods (..) to change to the parent directory. Send the FILES,A
command to list the files in the parent directory.
Each directory also has a reference to itself (“.”), that is, “/c/./DIR1/./../ FILE” refers
to “/c/FILE” (or, using the legacy format, to “c:FILE”).
Example:
Note:
For backward compatibility, “c:” is equivalent to “/c”, and “rom:” is equivalent
to “/rom”. New applications should always use “/rom” or “/c”.
Note:
For more information on commands, see the
Fingerprint Command Reference
Manual
.
CHDIR “/c/DIR1/DIR2”
Changes the current directory.
COPY “../DIR3/FILE”, “FILE”
Copies /c/DIR1/DIR3/FILE to
/c/DIR1/DIR2/FILE.
CHDIR “..”
Goes up to “/c/DIR1”.
CHDIR “../”
Goes up to /c. Note that a trailing slash
can be used.
Note:
While a file or directory name can contain all printable characters except “:”
(colon) and “/” (slash), only “/c” supports using directories.