FSDIRLIST
Command
The FSDIRLIST command returns a list of files and
directories which exist within the specified directory on the
printer’s file system. This command is similar in function
to the DOS DIR command. The ENTRY and COUNT
parameters are used to limit the amount of data returned
to the host.
Syntax: @PJL FSDIRLIST NAME = "
pathname
"
~ENTRY=
integer
COUNT
=integer
[<CR>]<LF>
Response Syntax: @PJL FSDIRLIST NAME = "
pathname
"
~ENTRY=
integer
[<CR>]<LF>
filename
TYPE=FILE SIZE=
integer
<CR><LF>
filename
TYPE=DIR<CR><LF>
...
<FF>
If the pathname is invalid:
@PJL FSDIRLIST NAME = "
pathname
"[<CR>]<LF>
FILEERROR=
number
<CR><LF>
<FF>
Parameters:
NAME = "pathname" — for the FSDIRLIST command,
pathname must be a directory (not a file). For a complete
description of the NAME parameter, see the NAME =
"pathname" description on pages 9-2 and 9-3.
ENTRY = integer — Every file or subdirectory that has
been created on the file system is considered an entry.
The entry variable is the number of the starting entry to
be displayed. For example, to display the directory listing
Parameter Functional Range Default
NAME="pathname" Roman-8 characters
01 thru 255
N/A
ENTRY=integer 1 to 2
31
– 1 N/A
COUNT=integer 1 to 2
31
– 1 N/A
9-4 PJL File System Commands