How to create an application in IIS using command line?

我的梦境 提交于 2020-01-15 03:05:27

问题


What would be the equivalent, by command line, of the create button in the Home Directory tab in IIS 6.0 ? (Used to create an application on a directory).

Edit : I already know of iidvdir. Unfortunalety, it doesn't seem to work the way I want it to (or I dont use it properly). Let's say that I have a website called Website for witch the root directory is C:\Website. I want to create the application in C:\Website\Application. If i try

iisvdir /create Website Application c:\website\Application

I get the message The virtual directory already exists. What I am doing wrong ?


回答1:


Command-line Tools Included in IIS. In-particular %SystemRoot%\System32\IIsVdir.vbs.




回答2:


iisvdir /create Website Application c:\website\Application

It will only works if the directory C:\Website\Application doesn't already exists. If the directory exists, you will get the The virtual directory already exists message.




回答3:


use IIsVDir.vbs (look in windows\system32\IIsVDir.vbs)



来源:https://stackoverflow.com/questions/1610880/how-to-create-an-application-in-iis-using-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!