HP 5100tn Printer Job Language - Technical Reference Manual - Page 172
FSQUERY, Command
View all HP 5100tn manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 172 highlights
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" [] Response Syntax: If pathname is a file: @PJL FSQUERY NAME="pathname" TYPE=FILE ~SIZE=integer If pathname is a directory: @PJL FSQUERY NAME="pathname" TYPE=DIR If the pathname is invalid: @PJL FSQUERY NAME="pathname" ~FILEERROR=number Parameters: Parameter Functional Range NAME="pathname" Roman-8 characters 01 thru 255 Default N/A 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 9-10 PJL File System Commands