Skip to content

N: SIO Command $21 Delete File

Bill Kendrick edited this page May 27, 2022 · 4 revisions

N: SIO Command Delete File($21)

This is a command for Devices $71-$78 - The N: Device (see SIO-Commands-for-Device-IDs-$71-to-$78).

Description

Delete the file pointed to by a valid N: Devicespec to a new name. If the desired protocol does not support rename, an ERROR 144 will be returned, with a subsequent extended error code of 146 returned on the next status call.

Parameters

DCB Value
DDEVIC $71
DUNIT $01 - $04
DCOMND $20
DSTATS $80
DBUF 256 byte long EOL terminated N: Devicespec
DTIMLO $0F
DBYT 256
DAUX1 not used
DAUX2 not used

Examples

CC65

const char filename[256]="N:TNFS://TMA-1/FOO.TXT";

OS.dcb.ddevic=0x71;
OS.dcb.dunit=1;
OS.dcb.dcomnd=0x21;
OS.dcb.dstats=0x80;
OS.dcb.dbuf=&filename;
OS.dcb.dtimlo=0x0f;
OS.dcb.dbyt=256;
OS.dcb.daux1=0;
OS.dcb.daux2=0;

See Also

Put other related command links here.

Clone this wiki locally