title: Get IIS Express Physical Path from Command Line
body: <p>I have a project which physical path is: <code>C:\Users\username\Documents\My Web Sites\WebSite1\</code></p>
  
  <p>How do I obtain that from the command line? Either with CMD, wmic or powershell it doesn't matter.</p>
  
  <p>I am running the IIS Express server manually, with: <code>C:\Program Files (x86)\IIS Express&gt;iisexpress.exe</code> in case that helps.</p>
  
  <p>For the IIS Server I can do this:</p>
  
  <pre><code>cat C:\Windows\System32\inetsrv\config\applicationHost.config | sls "physicalPath"
  </code></pre>
  
  <p>and then: </p>
  
  <pre><code>dir env:SystemDrive
  </code></pre>
  
  <p>I am not sure if there is another option</p>