Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create virtual dir in PWS
Message
From
18/02/2003 08:17:10
 
 
To
17/02/2003 08:57:26
Leo Kool
Agis Automatisering BV
Harmelen, Netherlands
General information
Forum:
Microsoft IIS Server
Category:
Other
Miscellaneous
Thread ID:
00754054
Message ID:
00754409
Views:
27
This message has been marked as a message which has helped to the initial question of the thread.
Leo
I did this by command line stopping the web server. Writing the appropriate folder name into the registry then re starting the web server.

If you want I'll find the code I used.
I did spend some time trying to find other ways to do it and in the end this was the only method I could come up with.

Nick Mason

>Hi Everyone,
>
>Does anyone know how to create a virtual dir via script in PWS on a Win98 machine?
>I know how to do it with IIS5 on WinXP, but can't get it work on PWS Win98
>Here's the code I use:
>
>Option Explicit
>
>Dim Root
>Dim Dir
>
>On Error Resume Next
>
>Set Root = GetObject("IIS://LocalHost/W3SVC/1/ROOT")
>
>If (Err.Number <> 0) Then
>	MsgBox "Web Server doesn't exist"
>	Wscript.Quit
>End If
>
>Set Dir = Root.Create("IIsWebVirtualDir", "Test")
>
>Dir.Path = "C:\Test\"
>Dir.AccessRead = True
>Dir.AccessWrite = False
>Dir.EnableDirBrowsing = False
>Dir.AppFriendlyName = "Test"
>Dir.SetInfo
>
>Set Dir = Nothing
>Set Root = Nothing
>
>Thanks in advance.
>
>Leo Kool
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform