Use Powershell. You don't really provide enough details for a full script. However let's assume that you want to replace a file called cursor.png
that resides in a directory we'll call C:\target
with the same named file stored in a directory called c:\source
.
$source = 'C:\source'
$target = 'C:\target'
cd $source
copy cursor.png $target -force
Of course if you wanted to copy all .png
files then you can use wildcards.