Hi!
I'm trying to configure Frontpage Server Extensions by means of an ASP page.
I've used the following code to configure it:
Sub ConfigureFrontp ageExtensions (FPUser, HostHeader)
FPRoot = """C:\Progr am Files\Common Files\Microsoft Shared\web server
extensions\50\b in\owsadm.exe"" "
Set WshNetwork = Server.CreateOb ject("WScript.N etwork")
strComputer = WshNetwork.Comp uterName
command1 = FPRoot & " -o install -p 80 -m " & HostHeader & " -u
administrator"
command2 = FPRoot & " -o roleusers -c add -u " & strComputer & "\" &
FPUser & " -w / -n AdvAuthor -p 80 -m " & HostHeader
Set objWSH = Server.CreateOb ject("WScript.S hell")
objWSH.Run command1 , 0, True
objWSH.Run command2 , 0, True
response.write command1 & "<br>"
set objWSH = Nothing
End Sub
The same code works when I use it as a .vbs script directly in Windows but
apparently nothing happens when I try to execute it from my asp page.
Does anyone have a suggestion that will help me to proceed?
Thanks in advance
Morten
I'm trying to configure Frontpage Server Extensions by means of an ASP page.
I've used the following code to configure it:
Sub ConfigureFrontp ageExtensions (FPUser, HostHeader)
FPRoot = """C:\Progr am Files\Common Files\Microsoft Shared\web server
extensions\50\b in\owsadm.exe"" "
Set WshNetwork = Server.CreateOb ject("WScript.N etwork")
strComputer = WshNetwork.Comp uterName
command1 = FPRoot & " -o install -p 80 -m " & HostHeader & " -u
administrator"
command2 = FPRoot & " -o roleusers -c add -u " & strComputer & "\" &
FPUser & " -w / -n AdvAuthor -p 80 -m " & HostHeader
Set objWSH = Server.CreateOb ject("WScript.S hell")
objWSH.Run command1 , 0, True
objWSH.Run command2 , 0, True
response.write command1 & "<br>"
set objWSH = Nothing
End Sub
The same code works when I use it as a .vbs script directly in Windows but
apparently nothing happens when I try to execute it from my asp page.
Does anyone have a suggestion that will help me to proceed?
Thanks in advance
Morten
Comment