Use AppCmd to create update script for IIS websites from Subversion
Robba 6/25/2009 12:23:00 PMJust a quick update here from my original post about two years ago. I’m using publishing directly from Subversion now, so I thought I’d recycle this script. I recommend downloading the CollabNet command line SVN client.
echo off
Set /P Dest=[new folder date]
Set /P Prev=[old folder date]
cd "C:\Program Files\CollabNet Subversion Client"
svn co https://svn.yourdomain.com:8443/repository/%dest% C:\WebSite\%dest%
"c:\windows\system32\inetsrv\appcmd.exe" set vdir site1/ -physicalpath:c:\WebSite\%dest%
copy /y "C:\WebSite\%prev%\web.config" "C:\WebSite\%dest%\web.config"
Echo "Site Update Complete"
Just put this in a batch file and run it when you need to update your site on IIS7.

