![background image](http://html.mh-extra.com/html/hp/4600-color-laserjet-laser-printer/4600-color-laserjet-laser-printer_technical-reference-manual_163672167.webp)
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 <CR><LF>
A sample response would appear similar to this:
@PJL FSDIRLIST NAME = "0:\pcl\macros"
~
ENTRY=1<CR><LF>
. TYPE=DIR<CR><LF>
.. TYPE=DIR<CR><LF>
invoice.prn.rl TYPE=FILE SIZE=1619<CR><LF>
page1.prn.tf TYPE=FILE SIZE=2260<CR><LF>
gen_cond.prn.mt TYPE=FILE SIZE=900<CR><LF>
pclResourceFile TYPE=FILE SIZE=420<CR><LF>
Related Commands:
FSAPPEND, FSDELETE, FSDOWNLOAD, FSINIT,
FSMKDIR, FSQUERY, FSUPLOAD, INFO FILESYS
PJL File System Commands 9-5
Summary of Contents for 4600 - Color LaserJet Laser Printer
Page 18: ...1 6 Introduction to PJL ...
Page 36: ...3 8 Using PJL ...
Page 46: ...4 10 Kernel Commands ...
Page 66: ...Figure 6 1 How Environments Affect the Print Job 6 4 Environment Commands ...
Page 108: ...6 46 Environment Commands ...
Page 180: ...9 18 PJL File System Commands ...
Page 212: ...10 32 Programming Tips ...
Page 262: ...B 6 PJL Command Summary ...
Page 302: ...Glossary 10 ...