Fsquery Command - HP Color LaserJet 5500 Technical Reference Manual

Printer job language - technical reference manual
Hide thumbs Also See for Color LaserJet 5500:
Table of Contents

Advertisement

FSQUERY
Command
Syntax:
Response Syntax:
Parameters:
Printer Responses
9-10 PJL File System Commands
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.
@PJL FSQUERY NAME = " pathname " [<CR>]<LF>
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>
Parameter
NAME="pathname" Roman-8 characters
NAME = "pathname" — For a complete description of
the NAME parameter, see the NAME = "pathname"
description on pages 9-2 and 9-3.
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
Functional Range
01 thru 255
Default
N/A

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents