How to create an application in IIS using command

2019-07-14 17:17发布

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 ?

3条回答
劫难
2楼-- · 2019-07-14 17:41

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楼-- · 2019-07-14 17:47

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

查看更多
▲ chillily
4楼-- · 2019-07-14 17:55

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

查看更多
登录 后发表回答