title: XCOPY overwrite action?
body: <p>in the bat file I got a simply command like :</p>
  
  <pre><code>xcopy "C:\Users\me\Documents\ApplyPatchBat" "C:\Users\me\Desktop\Test\" /S/E/K 
  </code></pre>
  
  <p>This does the job where it will copy all the files including files inside subfolders. I know you can add /y to make it auto overwrite. <br>
  How ever I want to create an statement if this file that we are copying exist in the destination folder, copy the one in destination folder to a backup folder. <br></p>
  
  <p>I wonder there is any IF statement I can add to after the command to detect if the file is existing? Or maybe an error level check when its asking do I want to overwrite? <br>P.S. This is for applying new patches to a program, where there are many layers of folders, that's why I use the /S/E/K  in xcopy.</p>