NAME StatementRenames a file or directory.
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
|NAME oldspec$ AS newspec$|
|oldspec$ and newspec$||The name of an existing file and the new name for the file. Each name may include a path.|
INPUT "Old Name: "; OldFN$ INPUT "New Name: "; NewFN$ NAME OldFN$ AS NewFN$