![background image](http://html.mh-extra.com/html/hp/4600-color-laserjet-laser-printer/4600-color-laserjet-laser-printer_technical-reference-manual_163672172.webp)
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
Summary of Contents for 4600 - Color LaserJet Laser Printer
Page 18: ...1 6 Introduction to PJL ...
Page 36: ...3 8 Using PJL ...
Page 46: ...4 10 Kernel Commands ...
Page 66: ...Figure 6 1 How Environments Affect the Print Job 6 4 Environment Commands ...
Page 108: ...6 46 Environment Commands ...
Page 180: ...9 18 PJL File System Commands ...
Page 212: ...10 32 Programming Tips ...
Page 262: ...B 6 PJL Command Summary ...
Page 302: ...Glossary 10 ...