title: Using batch file to create IIS Virtual Directory from config file
body: <p>I am creating an automatic deployment script and need to create an IIS Virtual Directory from the configuration file which is created when you Right-Click the virtual directory and select "All Tasks > Save Configuration to a File"</p>
  
  <p><a href="http://img5.imageshack.us/img5/7200/saveconfigurationtofile.gif" rel="nofollow noreferrer">Save Configuration To File http://img5.imageshack.us/img5/7200/saveconfigurationtofile.gif</a></p>
  
  <p>I have done some reading and know there is a script included with Microsoft Windows Server called "IISVDIR.VBS" but this doesn't seem to take this configuration file as an argument, so you have to fill in everything yourself.</p>
  
  <p>The only way I know that you can create a Virtual Directory from this configuration file is to select "New > Virtual Directory (from file)...".</p>
  
  <p>Does anyone know if it is possible to automate this?</p>