Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Ralf Brown's Interrupt List (Part 1,2) - int 21 - dos 2+ - rename a file http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 21 - DOS 2+ - RENAME A FILE
        AH = 56h
        DS:DX -> ASCIZ old name (drive and path allowed, no wildcards)
        ES:DI -> ASCIZ new name
Return: CF set on error
            AX = error code (02h,03h,05h,11h) (see AH=59h)
        CF clear if successful
Notes:  allows move between directories on same logical volume
        does not set the archive attribute (see AX=4300h), which results in
          incremental backups not backing up the file under its new name
        (DOS 3+) allows renaming of directories
        (DOS 3.1+) wildcards are allowed if invoked via AX=5D00h, in which case
          error 12h (no more files) is returned on success, and both source and
          destination specs must be canonical (as returned by AH=60h).
          Wildcards in the destination are replaced by the corresponding char
          of each source file being renamed.  Under DOS 3.x, the call will fail
          if the destination wildcard is *.* or equivalent.
SeeAlso: AH=17h,AH=60h,AX=5D00h

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson