1

How can I use appcmd in IIS7 to set the physical path of a website?

Something like...

appcmd set site summit /[path='/'].path:c:\newpath

1 Answer 1

1

Try something like:

appcmd.exe set config  -section:system.applicationHost/sites /[name='My Site'].[path='/'].[path='/'].physicalPath:"c:\newpath"  /commit:apphost
2
  • Thanks. This worked for me... appcmd set site /site.name:"site name" /application[path='/'].virtualDirectory[path='/'].physicalPath:"D:\newpath". Yours might work as well! Feb 21, 2020 at 22:56
  • @JohnLivermore you should accept the answer to close the discussion.
    – Lex Li
    Feb 25, 2020 at 17:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .