Lwritefile command, Lrunfile command – Lexmark C762 User Manual

Page 170

Advertising
background image

PJL

3-91

LWRITEFILE Command

Use this command to write data to a file on a storage device.

Syntax:

@PJL LWRITEFILE DEVICE = filedevice FILENAME = "fname"
[START = location] [LENGTH = bytecount][<CR>]<LF><data>

[@PJL END DATA][<CR>]<LF>

Notes:

The file must be closed using the LCLOSEFILE command once all operations
are complete.

The command is ignored if the file doesn’t exist on the device. The command
is ignored if the file isn’t already open with a write

accesstype

.

If START =

location

is omitted on a file with an

accesstype

of

RW

, location

0

is assumed.

If START =

location

is greater than file size and the

accesstype

is

RW

, it

positions the file pointer at the end of the file.

If the LENGTH is omitted from a LWRITEFILE command, an @PJL END
DATA must be placed at the

end

of the data. All data up to ‘@’ in @PJL END

DATA is written to the file. The command requires

either

the LENGTH

parameter or the @PJL END DATA be specified, but not both.

LRUNFILE Command

Use this command to load and execute a file on a storage device. For example, use
this command to run the resident demo file or a demo file stored on flash or disk.

Syntax:

@PJL LRUNFILE DEVICE = filedevice FILENAME = "fname"[<CR>]<LF>

Advertising
This manual is related to the following products: