windows - Batch copy and overwrite files if they exist in the destination -


i found following batch script here on se:

batch script - if exist copy %localappdata% error

if exist "%localappdata%\foldername\filename" (copy /y "filename" "location") 

how modify script operate on directory full of files? tried didn't work:

if exist "temp\*.*" (copy /y "artwork\*.*" "temp") 

xcopy command includes update switch copy files present in target folder.

xcopy /y /u "artwork\*" "temp"  

Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -