SpartaDOS X Reference Manual

Programming with SpartaDOS X




Rename File(s) (RENAME)

Index


Purpose To change the name of a file or group of files.
 
Syntax

XIO 32, #IOCB,0,0,"Dd:[path]fname1.ext fname2.ext"
 

Remarks  

The name of the file or names of the files specified by fname1.ext will be changed to fname2.ext, exactly as with the RENAME command from the command processor. The IOCB selected should be closed for this operation. Wildcards may be used in both file name specifications. WARNING! SpartaDOS X has an extremely powerful RENAME function. It is possible to give two or more files on one disk the same name. It will then be impossible to refer to one file without referring to the other(s). For a few verbose ways to recover from duplicate file names, refer to the RENAME command remarks in chapter 4.


Previous page

Next page