title: Batch path variable does not work in Windows Server 2016
body: <p>we recently switched from Windows Server 2008 to 2016 and we have some tasks to delete files and folders based on batch every day.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>set successful="D:\TEST\logs\successful.log"
  set failed="D:\TEST\logs\failed.log"
  set delpath="D:\TEST\1 und 2"
  
  echo Logged time = %time% %date% &gt;&gt; %successful%
  echo Logged time = %time% %date% &gt;&gt; %failed%
  
  echo Files deleted: &gt;&gt; %successful%
  echo Files failed to delete: &gt;&gt; %failed%
  
  forfiles -p %delpath% -m *.* -c "cmd /c del /q @path &amp;&amp; echo @path&gt;&gt;%successful% || echo @path&gt;&gt;%failed%"
  forfiles -p %delpath% -c "cmd /c IF @isdir == TRUE rd /S /Q @path &amp;&amp; echo @path&gt;&gt;%successful% || echo @path&gt;&gt;%failed%"
  
  echo. &gt;&gt; %successful%
  echo. &gt;&gt; %failed%
  </code></pre>
  
  <p>Since server 2016 this batch does not work.
  Some issue with spaces in the path.</p>
  
  <p>Output is: </p>
  
  <pre><code>ERROR: Invalid argument/option - 'und'.
  Type "FORFILES /?" for usage.
  </code></pre>
  
  <p>Could there be some changes in syntax of the path? Did I miss quotation marks?</p>