Futurebasic/Language/Reference/usr movefile

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Syntax[edit | edit source]

USR MOVEFILE

Revised[edit | edit source]

FEBRUARY, 2002 (Release 6)

Description[edit | edit source]

This function moves a file from one location to another. If the move is successful, the copy of the file at the original location is erased and the function returns _noErr (zero). If the move fails, a file error code is returned. Example: The following example allows the user to select a file and a new destination before calling the USR MOVEFILE function. INCLUDE "Util_Files.incl"

  folderName$ = FILES$(_fFolder,,,destVref%)    LONG IF LEN(folderName$)
  END IF

See Also[edit | edit source]

RENAME; FILES$; USR COPYFILE