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

javascript - How do you prevent nested queries/catches in sequelize? -

java - Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread -

java - ConcurrentModificationException upon committing transaction with Hibernate -