I am excuting xcopy command in ipl to copy dcrs from a folder to teamsiteI do not want to overwrite the dcrs if it already exist in team sitein xcopy command /U is used to overwite the existing files is there anything which will do exactly opposite of that? /-U does not workpls can anybody reply as soon as possible?thanks in advance
Which OS you are using?In Windows 2000, /-Y will prompt to confirm before overwriting a file...
thanks for replyyes I agree with you but it prompts for confirmation when I run the command from command promptwhen i run a script then it directly overwrites the existing file.
There is a way to accomplish what you are asking for. The secret is to play with the attribute parameter (/M). You need to set X-copy to only copy the files that have the archive attribute and set the attribute to off once the files are copied.So, when you 1st copy your files all the A-Archive attribute will be turned off. New files and modified files will automatically have the A-Archive attribute ON. Next time you run the same command only these files will be copied.Hope that helps.