Function 56h Rename File (RENAME)
Renames or moves a file or directory by changing its directory
entry.
Entry AH = 56h
DS:DX = Pointer to an ASCIIZ string containing
original path and filename
ES:DI = Pointer to an ASCIIZ string containing
new path and filename
Return Nothing
or
AX = Error code, if CF is set
| 02h File not found
| 03h Path not found
| 05h Access denied
| 11h Not the same device
──────────────────────────────────────────────────────────────────
Open files must be closed before they are moved or renamed with
this function.
A program can use this function to move a file or directory by
specifying different paths in the parameters and keeping the
filename or directory name the same. This function cannot be used
to move files or directories from one disk drive to another;
however both the old and new names must specify the same drive
either explicitly or by default.
Wildcard characters cannot be included in the filenames.