|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
||||
|
||||
|
VBScript and IIS
Hi,
I really hope someone can help me with this, it's doing my nut in!!! I'll try not to waffle but this will be a long explanation for an expected short answer. Apologies in advance! I have been attempting to create a VBScript that changes certain properites of a website. I've actually been able to create a website using a VBScript and then modify some of its properties, which means I'm half way there. There are a couple of specific properties which I have been unable to locate but I believe they are associated with the IISWebVirtualDirectory object. The properties I'm trying to affect are on the Home Directory path and are: radio dial for 'A directory located on this computer' Check box for 'The exact URL entered above' It seems that I have found the property for 'A redirection to a URL' by the following means: Code:
Set Bindings(0) = providerObj.get("ServerBinding").SpawnInstance_()
Set vdirObj = providerObj.Get("IIsWebVirtualDirSetting='" & strSitePath & "/ROOT'")
vdirObj.HTTPRedirect = "http://google.com"
vdirObj.Put_()
I've omitted quite a few lines of code here as I think it would be confusing to my aims and I've been testing and seeing what occurs when changing the code. My main source of information has been Microsoft and the following URL. http://msdn2.microsoft.com/en-us/library/ms525644.aspx Pleeeeeeeeeease can someone help me find the two properties that I need. Maybe I'm looking in the wrong place???? Thanks in advance. Phil.
__________________
- Post your code - Post your errors - Be clear - Be courteous PLEASE...Finalise your thread with a solution or confirmation that the last advice worked or failed (We are here to help each other).
Last edited by jmurrayhead : November 29th, 2007 at 05:45 AM. Reason: fixed BBCode |
|
#2
|
||||
|
||||
|
Phil,
I've looked all over at tons of properties to try and help you out on this one, but it almost seems hopeless. I have no idea about 'The exact URL entered above', but I have an idea regarding 'A directory located on this computer'. Maybe it's possible that by setting the path, will determine what is selected? For example: Code:
vdirObj.Path = "C:\Inetpub\Wwwroot" Possibly this would select 'A directory located on this computer'? Anyway, I really have no idea, just wanted to give some possible suggestions. Maybe you can get some ideas from this example script: http://msdn2.microsoft.com/en-us/library/ms524913.aspx Good luck!
__________________
jmurrayhead Did I help you out? Make me popular by clicking the icon!New Members:Proper way to post a question Powered by ASP.Net |
|
#3
|
||||
|
||||
|
Cheers Jim. I'll try that little addition as I think it might well be quite close. It's certainly going to be something like that. I think when the path is added manually, the radio dial will change automatically. As it does with the redirect URL.
I think the check box I'm looking for is going to be a cumulative integer that affects all the check boxes on the page but uses bits. I come across something similar a few days ago in IIS. Thanks for your response. Very much appreciated! ![]() Phil. |
|
#4
|
||||
|
||||
|
Cheers, let me know how it works out
![]() BTW, I'm not Jim. The J in my username stands for Jason. Murray is my last name, and head is just an inside joke that I added onto my screen name ![]() |
|
#5
|
||||
|
||||
|
Quote:
![]() beam me up Scottie! ![]() LOL
__________________
................... ASCII and ye shall receive .................. Knowledge is the only resource on earth that multiplies when shared Support the Shemzilla Project Powered by C# |
|
#6
|
||||
|
||||
|
Quote:
LOL ya pointless troll ![]() |
|
#7
|
||||
|
||||
|
Quote:
![]() Jim this chicken ..... it's raw ..... set phasers on roast! lol |
|
#8
|
||||
|
||||
|
Quote:
lol I was thinking more along the lines of "American Pie" and Nadia, "Dear Jim" (Pronounced "Jeeem") ![]() |
|
#9
|
||||
|
||||
|
Thanks Jason. I'm sure there is a Jim around here somewhere. Is Lewy really Jim or is he messing about?
Oh never mind.Thanks again and I will try to complete this task for IIS I have been given. Phil. |
|
#10
|
||||
|
||||
|
Quote:
lol Nope, lewy isn't Jim. There probably is a Jim somewhere around here ![]() |
|
#11
|
||||
|