N: SIO Command $2B Remove Directory - FujiNetWIFI/fujinet-firmware GitHub Wiki
N: SIO Command Remove Directory ($2B)
This is a command for Devices $71-$78 - The N: Device (see SIO-Commands-for-Device-IDs-$71-to-$78).
Description
Remove the directory pointed to by a valid N: Devicespec to a new name. If the desired protocol does not support rename, an ERROR 146 will be returned. If the directory can not be removed (such as if it has files within it), an error will be returned.
Parameters
DCB | Value |
---|---|
DDEVIC | $71 |
DUNIT | $01 - $04 |
DCOMND | $2B |
DSTATS | $80 |
DBUF | 256 byte long EOL terminated N: Devicespec |
DTIMLO | $0F |
DBYT | 256 |
DAUX1 | not used |
DAUX2 | not used |
Examples
CC65
const char filespec[256]="N:TNFS://TMA-1/SOMEDIR\x9b";
OS.dcb.ddevic=0x71;
OS.dcb.dunit=1;
OS.dcb.dcomnd=0x2B;
OS.dcb.dstats=0x80;
OS.dcb.dbuf=&filespec;
OS.dcb.dtimlo=0x0f;
OS.dcb.dbyt=256;
OS.dcb.daux1=0;
OS.dcb.daux2=0;
siov();
See Also
Put other related command links here.