win32file.ReplaceFile

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

Replaces one file with another

Parameters

ReplacedFileName : string

File to be replaced

ReplacementFileName : string

File that will replace it

BackupFileName=None : string

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