SolFSStorage.MoveFile method


Pascal    Plain C    C++ (DLL/Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

SolFSStorage     See also    


Renames or moves file or folder within one storage.


    procedure MoveFile(OldFileName: TSolFSString; NewFileName: TSolFSString);

[Plain C]
    long _stdcall StorageMoveFile(unsigned long Storage, const wchar_t* OldFileName, const wchar_t* NewFileName);

[C++ (DLL/Lib)]
    void MoveFile(unsigned short * OldFileName, unsigned short * NewFileName);

[C++ (VCL)]
    void __fastcall MoveFile(TSolFSString OldFileName, TSolFSString NewFileName);

[C++ (.NET)]
    void MoveFile(String* oldFileName, String* newFileName)

    void MoveFile(string oldFileName, string newFileName)

    Sub MoveFile(oldFileName As String, NewFileName As String)

    void moveFile(String oldFileName, String newFileName)


  • [Plain C] Storage - handle to the storage returned by Create or Open function.
  • OldFileName - old file name (full path must be specified).
  • NewFileName - new file name (full path must be specified).

[Plain C]  Return values

0 if the function succeeded or one of Error codes if the function failed.


Use MoveFile function to rename file or folder or move it from one place in the storage to another.

See also