HP 3150 HP PCL/PJL reference - Printer Job Language Technical Reference Manual - Page 174
Printer Responses, Example: Using the FSDIRLIST Command, Related Commands, FSAPPEND, FSDELETE
UPC - 879889002135
View all HP 3150 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 174 highlights
example, to display the directory listing beginning with line 5, you would use ENTRY=5. The entry value must be greater than 0. Also, if the entry value is larger than the actual number of entries, the response will not include any entries. • COUNT = integer - The count variable specifies the number of entries to be returned. If the specified count is greater than the actual number of entries in the specified range, the actual number of entries will be displayed. Printer Responses The printer response indicates the number of bytes in the listed files (SIZE=number of bytes). If the pathname is invalid, a FILEERROR number is returned. This error number is equivalent to the PJL File System error numbers (32xxx) listed in Appendix D, minus the 32 and the leading zeros. For example, if the printer returns FILEERROR=17, the error is equivalent to status code 32017 (Invalid parameter), meaning the FSDIRLIST command contained an invalid parameter. See PJL File System Errors (32xxx) in Appendix D for a complete list of error codes. Example: Using the FSDIRLIST Command This example demonstrates using the FSDIRLIST command to return a directory list from the printer's file system. @PJL FSDIRLIST NAME = "0:\pcl\macros" ENTRY=1 ~COUNT=25 A sample response would appear similar to this: @PJL FSDIRLIST NAME = "0:\pcl\macros" ~ENTRY=1 . TYPE=DIR .. TYPE=DIR invoice.prn.rl TYPE=FILE SIZE=1619 page1.prn.tf TYPE=FILE SIZE=2260 gen_cond.prn.mt TYPE=FILE SIZE=900 pclResourceFile TYPE=FILE SIZE=420 Related Commands: FSAPPEND, FSDELETE, FSDOWNLOAD, FSINIT, FSMKDIR, FSQUERY, FSUPLOAD, INFO FILESYS 9-6 PJL File System Commands EN