qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 21H Function 56H
   Summary  Notes  Example  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Rename File
 
  Renames a file and/or moves its directory entry to a different directory
  on the same disk. In MS-DOS versions 3.0 and later, this function can
  also be used to rename a directory.
 
  Input                                   Output
  ════════════════════════════            ══════════════════════════════
  AH=56H                                  If function successful
  DS:DX=segment:offset of cur-            Carry flag=clear
   rent ASCIIZ pathname                   if function unsuccessful
  ES:DI=segment:offset of new             Carry flag=set
   ASCIIZ pathname                        AX=error code
                                    -♦-