Lexmark C760, C762 manual 3-91, LWRITEFILE Command, LRUNFILE Command, Syntax

Models: C762 C760

1 402
Download 402 pages 23.32 Kb
Page 170
Image 170

 

3-91

PJL

 

 

 

 

 

 

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>

Page 170
Image 170
Lexmark C760, C762 manual 3-91, LWRITEFILE Command, LRUNFILE Command, Syntax