Use this function to rename an ASCII or binary file.
[Ok :=] File.RENAME(OldName, NewName) |
Parameters
- OldName
-
Type: text or code.
The current name of the file you want to change, including its path. When you enter the path, keep in mind these shortcuts:
-
You can omit the drive designation, if the file is located on the current drive.
-
You can omit the full path, if the file is located in the current directory.
-
You can enter only the subdirectory name, if the file is located in a subdirectory of the current directory.
-
- NewName
-
Type: text or code
The new name you want to assign to the file, including its path. When you enter the path, keep in mind these shortcuts:
-
You can omit the drive designation, if the file is located on the current drive.
-
You can omit the full path, if the file is located in the current directory.
-
You can enter only the subdirectory name, if the file is located in a subdirectory of the current directory.
-