set Web Sharing via command line?

  • Thread starter Thread starter Tony Baker
  • Start date Start date
T

Tony Baker

Hi, I'm creating an install (using InstallShield v6.3) to setup an
ASP.Net web application onto a computer (basically, just copy files
into C:\Inetpub\wwwroot\whatever).
One of the things I need to do is set folder properties to enable web
sharing for the folder I install my application in to.
Is there a command line program I can execute to do this, rather than
asking the user to bring up properties for the folder, go to the web
sharing tab and select "share this folder"?
I'm not sure what newsgroup I should be posting this to, apologies if
I get it wrong...
Many thanks,
Tony.
 
What OS / version of IIS ?
Have you seen the adsutil script shipped with IIS 5 ?
It shows use of the needed com objects, which same
you could code up the use of directly.

Now, some observations:

Forget about "WebFolders" interface.
It is IIS vDirs and/or applications you want to configure.

Do not assume a specifc physical location such as the
default location you mentioned. Inquire from the existing
metadir info to locate the physical location appropriate if
the installing user does not want to override and specify
one outside of the storage area of the existing parent vDir.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top