title: how to replace a space with the name of a file, to build a route?
body: <p>I'm trying to make a copy of all the existing files in a folder to another folder. but I have problems with the names that have that blank</p>
  
  <pre><code>folder
  -- new file.txt----&gt;the problem 
  -- file2.txt
  -- file3.csv
  </code></pre>
  
  <p>i apply this mybatch.bat</p>
  
  <pre><code> set FECHA=%date%
   set FECHA=%FECHA:/=%
   set FILE=D:\BACKUPS
   for %%i in (*) do (
       copy %cd%\%%i %FILE%\${%%~ni// /_}_%DATE%%%~xi
  )
  </code></pre>
  
  <p>try to replace the blanks with "_" the following code, in a route</p>
  
  <pre><code>${%%~ni// /_}
  </code></pre>
  
  <p>but this does not run, it just comes out as string</p>
  
  <pre><code>D:\BACKUPS\${%%~ni// /_}_090519.txt
  </code></pre>
  
  <p>i want this</p>
  
  <pre><code>D:\BACKUPS\new_file_090519.txt
  </code></pre>