title: remove space from path
body: <pre><code>Setlocal enabledelayedexpansion
  localDirectoryPath=d:/folder/subfolder
  set /p AHFilename=&lt;%fileName%
  set pathname=!localDirectoryPath!\!AHFilename!
  echo pathname=!pathname!
  </code></pre>
  
  <p>pathname when echoed,output is <code>d:/folder/subfolder /fileName</code> , that is there is space between subfolder and / , hence path of pathname becomes inaccessible. the error shown on command prompt is "d:/folder/subfolder" does not exist.</p>
  
  <p>Please help. If the said space is removed, the code may run correct.</p>