Compartir a través de


CAtlTransactionManager::MoveFile

Moves an existing file or a directory, including its children, as a transacted operation.

inline BOOL CAtlTransactionManager::MoveFile(
   LPCTSTR lpOldFileName,
   LPCTSTR lpNewFileName
);

Parameters

  • lpOldFileName
    The current name of the existing file or directory on the local computer.

  • lpNewFileName
    The new name for the file or directory. This name must not already exist. A new file may be on a different file system or drive. A new directory must be on the same drive.

Remarks

This wrapper calls the MoveFileTransacted function.

Requirements

Header: atltransactionmanager.h

See Also

Reference

CAtlTransactionManager Class