Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
IF EXIST filename (
REM Do one thing
) ELSE (
REM Do another thing

Here is a link with help on IF statements.

This is for windows batch files

share|improve this answer

Your Answer


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.