NAME
From MCS Wiki AVR
Contents |
Action
This AVR-DOS statement renames a file or directory name.
Syntax
NAME old AS new
Remarks
old |
The name of the file or folder that you want to rename. This file must exist in the current folder. |
new |
The new name of the file. The new file may not already exist. The current folder will be used. |
Both old and new must be valid file names and of the string data type. Constants are not allowed.
See also
INITFILESYSTEM , OPEN , CLOSE, FLUSH , PRINT, LINE INPUT, LOC, LOF , EOF , FREEFILE , FILEATTR , SEEK , BSAVE , BLOAD , KILL , DISKFREE ,DISKSIZE , GET , PUT, FILELEN , FILEDATE , FILETIME , FILEDATETIME , WRITE , INPUT , DIR, MKDIR, RMDIR, CHDIR
Example
Old = "file1.txt" New = "fileNew.txt" NAME old AS new
Languages | English |
---|