win32file.ReplaceFile

ReplaceFile(ReplacedFileName, ReplacementFileName, BackupFileName, ReplaceFlags, Exclude, Reserved)

Replaces one file with another

Parameters

ReplacedFileName : PyUNICODE

File to be replaced

ReplacementFileName : PyUNICODE

File that will replace it

BackupFileName=None : PyUNICODE

Place at which to create a backup of the replaced file, can be None

ReplaceFlags=0 : int

Combination of REPLACEFILE_* flags

Exclude=None : None

Reserved, use None if passed in

Reserved=None : None

Reserved, use None if passed in

Comments

Only available on Windows 2000 or later