Tech Support Guy banner
Status
Not open for further replies.

copy file without overwrite

Solved 
1K views 1 reply 1 participant last post by  nomad 
#1 ·
I have built a little batch file to copy a file from one place to another and rename it. This worked great but what i would like to do is if the file exists just skip it. i don not want to overwrite. I have looked at copy, xcopy and robocopy and cant quite figure out how to do this using variables like you see below. I have proven all the variables you see below hold the right value. Can anyone help me?

copy /b "C:\Users\tertom01\Desktop\BatchFiles\Project Docs\PPE.docx" "%fold%\Quality\%pnum%-%psuf% PPE.docx"
 
Status
Not open for further replies.
You have insufficient privileges to reply here.
Top