I need to change the physical path of a web site through the command line via the appcmd.exe tool, but I can’t figure out the syntax. Can someone help?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is how you should do:
C:\Windows\System32\inetsrv>appcmd set vdir “MySite/” -physicalPath:”C:\inetpub\temp”
Note: “MySite/” is a name of your virtual directory so if your virtual directory is under default web site you’re likely have to set “Default Web Site/MySite/”
As for figuring out how to do other appcmd commands just type: appcmd set vdir /?
and you’ll get all the info on what you can do to set your virtual directory.
Even more specifically, if you want to know what settings you can change for the specific virtual directory type:appcmd set vdir “MySite/” /?
These examples are just for virtual directory by they apply to other appcmd commands
Hope this helps