title: Batch file to create Folder based on Date and Copy Files from One Location to Another Location?
body: <p>I want to Copy/Move files in Windows XP from Desktop(a Folder) to My Document(another Folder), which was created by same Batch File on Current Date in Format DD/MM/YYYY.</p>
  
  <p>This is working fine when .BAT File is in Desktop Folder.</p>
  
  <pre><code>@echo off
  set date="%date:~7,2%-%date:~4,2%-%date:~10,4%"
  mkdir %date%
  copy *.txt \%date%
  pause
  </code></pre>
  
  <p>Now what this .BAT is doing is, creating Folder 18-01-2013 on Desktop and coping all .TXT files in this Folder.</p>
  
  <p>But this is not working,</p>
  
  <pre><code>@echo off
  set date="%date:~7,2%-%date:~4,2%-%date:~10,4%"
  mkdir %USERPROFILE%\My Documents\%date%
  copy %USERPROFILE%\desktop\*.txt %USERPROFILE%\My Documents\%date%
  pause
  </code></pre>
  
  <p>This .BAT File is creating these folders;
  1. In C Drive>Documents
  2. On Desktop (and, Chandel>My, Documents>18-01-2013, Settings>Anshuman)</p>
  
  <p>Any help in this regard is highly appreciated!</p>