title: %%A was unexpected at this time
body: <p>I want to zip a folder containing files. So inorder to do that i need to loop through the entire file list and execute 7za command. (7zip command line version)</p>
  
  <pre><code>for /f %%A in ('"G:\Files Sample\zip\txt\*.t
  xt"') do 7za -tzip "%%A.zip" "%%A"
  </code></pre>
  
  <p>However windows says that this command is not valid. </p>
  
  <p>Error message is </p>
  
  <pre><code>%%A was unexpected at this time
  </code></pre>
  
  <p>How do i overcome this issue ?</p>