title: How to pass string with double quotes as command line parameter to a batch file
body: <p>I am trying to pass a string seperated with spaces using double quotes as the command line parameter to the batch file. But only first word is taken and remaining are ignored. Below is my batch file.</p>
  
  <pre><code>@echo off
  if "%1" == "" (
      echo "Usage: filename &lt;interface_name&gt;"
      exit /B ) 
  set INTERFACE=%1
  echo "Going to execute build for %INTERFACE%
  </code></pre>
  
  <p>Executing the above batch script results in the below error output.</p>
  
  <pre><code>C:\Users\Administrator\Desktop\HPFW&gt;save.bat "Ethernet PCIe Adapter"
  PCIe was unexpected at this time.
  C:\Users\Administrator\Desktop\HPFW&gt;
  </code></pre>
  
  <p>Can anybody please let me know how do we handle string separated with double quotes when passed as command line parameter to the batch file.</p>