Lexmark XS748 Printer Languages and Interfaces Technical Reference - Page 129

Accessing files with PostScript emulation, File naming conventions

Page 129 highlights

Flash memory and hard disk 129 Accessing files with PostScript emulation File naming conventions For any PostScript emulation operator that requires a file name parameter, the file name can be one of the following: • %device%filename-References a file on a particular device. If the file name does not exist on %device%, then no other %device% is accessed for a duplicate file name. • filename-Does not reference a device. The following actions occur when a device is not referenced: - For the PostScript emulation operator deletefile, only the first device in the search order is checked for file name. - For all other PostScript emulation operators, and all other combinations of search order and available devices, each installed %device% is checked in the search order for the existence of file name. The operator acts upon the first file name that it finds. Device names A device can be a flash memory, hard disk, or ROM. For PostScript emulation, some of the operators require or return device names. These operators are deletefile, filenameforall, devforall, devdismount, devmount, devformat, devstatus. The device always begins and optionally ends with a % character. The following are the valid device names: • %rom% • %flash% • %flash1% • %disk% • %disk1% The same file name can exist on more than one device. The device prefix determines the actual file to use. For example, %rom%myfile and%flash%myfile designate, respectively, a file called myfile both on the ROM and on the flash memory. The device name distinguishes which file to use. Device names are case-sensitive. Each device (except for the hard disk) has one synonym. For example, the flash memory can be referred to as %flash% or %flash1%. The name with the 1 is a unique identifier. This system allows for future expansion of multiple flash memory or hard disk devices. The disk device name provides for multiple physical units and multiple logical units. Thus, %disk1_0% indicates the first physical unit and the first (0) logical partition on the device. Currently, one physical device (for ROM, flash memory, and hard disk) is supported. The hard disk supports only the first (0) logical partition. File names Each file on a device has a unique name to identify the information contained within the file. The name can be up to 127 characters in length. All character codes from X'01' to X'FF' are valid (X'00' is not valid). File names are case-sensitive. For example, %flash%myfile and %flash%MYFILE indicate different files on the flash memory.

  • 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

Accessing files with PostScript emulation
File naming conventions
For any PostScript emulation operator that requires a file name parameter, the file name can be one of the
following:
%device%filename
—References a file on a particular device. If the file name does not exist on %device%,
then no other %device% is accessed for a duplicate file name.
filename
—Does not reference a device.
The following actions occur when a device is not referenced:
For the PostScript emulation operator
deletefile
, only the first device in the search order is checked for
file name.
For all other PostScript emulation operators, and all other combinations of search order and available
devices, each installed %device% is checked in the search order for the existence of file name. The
operator acts upon the first file name that it finds.
Device names
A device can be a flash memory, hard disk, or ROM. For PostScript emulation, some of the operators require
or return device names. These operators are
deletefile, filenameforall, devforall, devdismount, devmount,
devformat, devstatus
. The device always begins and optionally ends with a % character. The following are the
valid device names:
%rom%
%flash%
%flash1%
%disk%
%disk1%
The same file name can exist on more than one device. The device prefix determines the actual file to use. For
example,
%rom%myfile
and
%flash%myfile
designate, respectively, a file called
myfile
both on the ROM and
on the flash memory. The device name distinguishes which file to use. Device names are case-sensitive.
Each device (except for the hard disk) has one synonym. For example, the flash memory can be referred to
as
%flash%
or
%flash1%
. The name with the
1
is a unique identifier. This system allows for future expansion of
multiple flash memory or hard disk devices. The disk device name provides for multiple physical units and
multiple logical units. Thus,
%disk1_0%
indicates the first physical unit and the first
(0)
logical partition on the
device. Currently, one physical device (for ROM, flash memory, and hard disk) is supported. The hard disk
supports only the first
(0)
logical partition.
File names
Each file on a device has a unique name to identify the information contained within the file. The name can be
up to 127 characters in length. All character codes from X'01' to X'FF' are valid (X'00' is not valid). File names
are case-sensitive. For example,
%flash%myfile
and
%flash%MYFILE
indicate different files on the flash
memory.
Flash memory and hard disk
129