HP PCL/PJL reference - Printer Job Language Technical Reference Manual
9-12 PJL File System Commands EN
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 command contained an illegal NAME variable. See PJL 
File System Errors (32xxx) in Appendix D for a complete list of error 
codes.
Example: Using the FSQUERY Command
The following two command lines demonstrate using the FSQUERY 
command to check for the existence of a file and a directory on the 
printer's file system.
@PJL FSQUERY NAME = "0:\pcl\file1" <CR><LF>
@PJL FSQUERY NAME = "0:\pcl\macro\" <CR><LF>
Related Commands:
FSAPPEND, FSDELETE, FSDIRLIST, FSDOWNLOAD, FSINIT, 
FSMKDIR, FSUPLOAD, INFO FILESYS










