I am using VSTS 2008 + C# + .Net 3.5 + IIS 7.0. I want to using appcmd to add a new web site, my scenario is like this.
I have stuied appcmd for quite some time, but cannot figure out. Maybe either I am too stupid or because IIS 7.0/appcmd is new, help information is limited. :-)
Appreciate if anyone could let me know how to complete my deployment task using appcmd?
thanks in advance, George
Execute the following:
"%windir%\system32\inetsrv\AppCmd" add app /site.name:"Default Web Site" /path:/testsite1 /physicalPath:"c:\template"
How I found this out? I did the following:
appcmd add app /?
and there was this example:
appcmd add app /site.name:"Default Web Site" /path:/app1
so I just added physicalPath