2

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 Answers 3

3

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

Sign up to request clarification or add additional context in comments.

2 Comments

Please add a reason if you're going to downvote. Also, look at the accepted answer :)
this seems to not be present in Windows2012Server
3

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.

1 Comment

FYI: IIsWeb /create "Website Application" to create the site.
1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.