title: Cannot parse variable in batch
body: <p>I am trying to use robocopy to copy a file from one folder to other, but i do not think source and destination are being set properly. Really appreciate help on this.</p>
  
  <pre><code>@echo off
  SET PathString = C:\Users\bibhukdas\Documents\New_folder1~C:\Users\bibhukdas\Documents\New_folder
  echo ******start**** &gt;&gt;C:\Users\bibhukdas\Documents\New_folder\log.txt
  echo ******POINT1**** &gt;&gt;C:\Users\bibhukdas\Documents\New_folder\log.txt
  echo "%PathString%" &gt;&gt;C:\Users\bibhukdas\Documents\New_folder\log.txt
  for /f "tokens=1,2 delims =~" %%a in("%PathString%") do set Source1=%%a&amp;set  Destination1=%%b
  echo ******POINT1**** &gt;&gt;C:\Users\bibhukdas\Documents\New_folder\log.txt
  if "%Source1%" == "0" goto NOSOURCE1
  robocopy.exe %Source1% %Destination1% *.doc /COPY:DAT /MINAGE:5 /R:1 &gt;&gt;    C:\Users\bibhukdas\Documents\New_folder\log.txt
  
  :NOSOURCE1
  echo *****source unavailable******* &gt;&gt;C:\Users\bibhukdas\Documents\New_folder\log.txt
  :EXIT
  </code></pre>