title: how to restore with batch file in windows
body: <p>I am solving some problems, two of the are backup and restore file with batch file. </p>
  
  <p>I have found out using xcopy command to backup files,  </p>
  
  <pre><code>xcopy "%programfiles(x86)%\VMware" "C:\Backup" /s /c /d /e /h /i /r /y
  </code></pre>
  
  <p>but I still have some problems with the restore the backup files which should restore in a new folder and restore in an existing folder.</p>
  
  <p>I searched on some website, some code use the same xcopy command and changed source/destination directory to restore file. Is there a command for restore or everyone changes their directory to restore files?</p>