HP PCL/PJL reference - Printer Job Language Technical Reference Manual

EN PJL File System Commands 9-11
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.
Parameter Functional Range Default
NAME="pathname" Roman-8 characters
01 thru 255
N/A