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 ?
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.
use IIsVDir.vbs (look in windows\system32\IIsVDir.vbs)
Command-line Tools Included in IIS. In-particular
%SystemRoot%\System32\IIsVdir.vbs
.