FSQUERY
Command
The FSQUERY command is used to determine if a given
entry exists within the file system, the type of entry (file or
directory), and if it is a file, the file size in bytes.
Syntax:
@PJL FSQUERY NAME = "
pathname" [<CR>]<LF>
Response Syntax:
If pathname is a file:
@PJL FSQUERY NAME="
pathname" TYPE=FILE
~
SIZE=
integer<CR><LF>
<FF>
If pathname is a directory:
@PJL FSQUERY NAME="
pathname" TYPE=DIR<CR><LF>
<FF>
If the pathname is invalid:
@PJL FSQUERY NAME="
pathname"<CR><LF>
~
FILEERROR=
number<CR><LF>
<FF>
Parameters:
NAME = "pathname" — For a complete description of
the NAME parameter, see the NAME = "pathname"
description on pages 9-2 and 9-3.
Printer Responses
The printer response indicates the number of bytes in the
queried files. If the pathname is invalid, a FILEERROR
number is returned. The returned number is equivalent to
the PJL File System errors (32xxx) listed in Appendix D,
only without the 32 and the leading zeros. For example, if
the printer returns FILEERROR=7, the error is equivalent
to status code 32007 (Illegal name), meaning the FSQUERY
Parameter
Functional Range
Default
NAME="pathname"
Roman-8 characters
01 thru 255
N/A
9-10 PJL File System Commands
Содержание 4600 - Color LaserJet Laser Printer
Страница 18: ...1 6 Introduction to PJL ...
Страница 36: ...3 8 Using PJL ...
Страница 46: ...4 10 Kernel Commands ...
Страница 66: ...Figure 6 1 How Environments Affect the Print Job 6 4 Environment Commands ...
Страница 108: ...6 46 Environment Commands ...
Страница 180: ...9 18 PJL File System Commands ...
Страница 212: ...10 32 Programming Tips ...
Страница 262: ...B 6 PJL Command Summary ...
Страница 302: ...Glossary 10 ...