title: Batch script that do a backup
body: <p>im a beginner in batch script,and im trying to do a script that ask for a file path,then create a folder(in the current folder)and I want the created folder name to be like "sav-DATE-TIME"(for example,right now the folder would be named: sav-2015-12-07-18-55-00) and then copy the file given by the user filepath in the created folder.So far I did this:</p>
  
  <pre><code>@ECHO OFF
  SET /P pathh=Enter the path
  SET foldname=sav%DATE%%TIME%
  mkdir %foldname%
  cd %foldname%
  xcopy /s/e %pathh% %cd%
  pause
  </code></pre>
  
  <p>However when I run this,no matter how I enter the path with " or ' or nothing around the path,it always says that the path is incorrect,and also it create a folder with random number(74,56,21...)as the folder name and I dont understand why it wont work properly,wich mean creating the folder with name as said at the begining of question and also saying the path is always incorrect.</p>
  
  <p>thank you!</p>