Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a batch which downloads latest folder and copying to a particular destination from particular Source path but Its dowloading the latest file among the available folder in source path even if the already copied/available in destination path.I want to avoid the repetation of copying same file .

share|improve this question
    
What OS are you using? It's hard to answer without knowing. –  martineau Dec 19 '12 at 18:14
add comment

1 Answer

IF EXIST filename (
REM Do one thing
) ELSE (
REM Do another thing
)

Here is a link with help on IF statements. http://www.robvanderwoude.com/if.php

This is for windows batch files

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.