title: referencing an attribute in a windows path string
body: <p>I have the following execute in chef:</p>
  
  <pre><code>#execute
  execute 'service-api install' do
    command 'c:\buildinfo\service-api\api\approot\web-#{node['default']['env']}.cmd'
  end
  </code></pre>
  
  <p>its running in windows and #{node['default']['env']} is an attribute that I am trying to reference in the path string above. </p>
  
  <p>When I run this I get the following error:</p>
  
  <pre><code>&gt; SyntaxError
  &gt; ==&gt; default: -----------
  &gt; ==&gt; default: C:\vagrant-chef\319622f1791bb50a8f9441fd4c1ff806\cookbooks\djcm_paypal_win\recipes\installService.rb:76:
  &gt; syntax error, unexpected tIDENTIFIER, expecting keyword_end
  &gt; ==&gt; default: ...api\approot\web-#{node['default']['env']}.cmd'
  </code></pre>
  
  <p>If I try:</p>
  
  <pre><code> #execute
      execute 'service-api install' do
        command "c:\buildinfo\service-api\api\approot\web-#{node['default']['env']}.cmd"
      end
  </code></pre>
  
  <p>The slashes display in a different color(escape character?) and I get the following error: </p>
  
  <pre><code>[execute] The filename, directory name, or volume label syntax is incorrect.
   command "c:\buildinfo ervice-api\api\approotweb-integration.cmd"
  </code></pre>
  
  <p>So it messes up around slashes but gets the attribute. How can I give an attribute in a string with slashes ?</p>
  
  <p>edit 1 :
   I tried both double slashes and the other solution, even though it now tries to find the right path but still gives a failure even though the file is present at that exact location and I can run it manually. Any ideas ?</p>
  
  <p>the error now : </p>
  
  <pre><code>* execute[service-api install] action run
  ==&gt; default:     [execute] The system cannot find the path specified.
  ==&gt; default:     
  ==&gt; default: 
  ==&gt; default:     ================================================================================
  ==&gt; default:     Error executing action `run` on resource 'execute[service-api install]'
  ==&gt; default:     ================================================================================
  ==&gt; default:     
  ==&gt; default:     Mixlib::ShellOut::ShellCommandFailed
  ==&gt; default:     ------------------------------------
  ==&gt; default:     Expected process to exit with [0], but received '1'
  ==&gt; default:     ---- Begin output of c:\buildinfo\service-api\api\approot\web-integration.cmd ----
  ==&gt; default:     STDOUT: 
  ==&gt; default:     STDERR: The system cannot find the path specified.
  ==&gt; default:     ---- End output of c:\buildinfo\service-api\api\approot\web-integration.cmd ----
  ==&gt; default:     Ran c:\buildinfo\service-api\api\approot\web-integration.cmd returned 1
  </code></pre>