Windows Scripting
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsSystem AdministrationWindows Scripting

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
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  
Old November 29th, 2007, 03:24 AM
PhilCollins99's Avatar
PhilCollins99 PhilCollins99 is offline
The Constant Student
ASP Free Novice (500 - 999 posts)
 
Join Date: Aug 2004
Location: England
Posts: 913 PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 5 h 40 m 9 sec
Reputation Power: 27
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

Reply With Quote
  #2  
Old November 29th, 2007, 06:50 AM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
The Drunken Moderator
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2004
Location: Reston, VA, USA
Posts: 13,038 jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate Folder
Time spent in forums: 3 Months 5 Days 15 h 46 sec
Reputation Power: 1563
Facebook
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!
Comments on this post
PhilCollins99 agrees: Thanks Jim!
__________________
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

Reply With Quote
  #3  
Old November 30th, 2007, 02:34 PM
PhilCollins99's Avatar
PhilCollins99 PhilCollins99 is offline
The Constant Student
ASP Free Novice (500 - 999 posts)
 
Join Date: Aug 2004
Location: England
Posts: 913 PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 5 h 40 m 9 sec
Reputation Power: 27
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.

Reply With Quote
  #4  
Old November 30th, 2007, 06:23 PM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
The Drunken Moderator
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2004
Location: Reston, VA, USA
Posts: 13,038 jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate Folder
Time spent in forums: 3 Months 5 Days 15 h 46 sec
Reputation Power: 1563
Facebook
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

Reply With Quote
  #5  
Old November 30th, 2007, 07:23 PM
lewy's Avatar
lewy lewy is offline
Dark Sonic Master
ASP Free Specialist (4000 - 4499 posts)
 
Join Date: Jun 2004
Location: Edinburg Tx
Posts: 4,362 lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)  Folding Points: 1009 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Week 1 Day 18 h 12 m 23 sec
Reputation Power: 1349
Quote:
Originally Posted by jmurrayhead
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
This is Jim
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#

Reply With Quote
  #6  
Old November 30th, 2007, 07:26 PM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
The Drunken Moderator
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2004
Location: Reston, VA, USA
Posts: 13,038 jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate Folder
Time spent in forums: 3 Months 5 Days 15 h 46 sec
Reputation Power: 1563
Facebook
Quote:
Originally Posted by lewy
This is Jim
beam me up Scottie!
LOL


LOL ya pointless troll

Reply With Quote
  #7  
Old November 30th, 2007, 07:29 PM
lewy's Avatar
lewy lewy is offline
Dark Sonic Master
ASP Free Specialist (4000 - 4499 posts)
 
Join Date: Jun 2004
Location: Edinburg Tx
Posts: 4,362 lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)lewy User rank is General 6th Grade (Above 100000 Reputation Level)  Folding Points: 1009 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Week 1 Day 18 h 12 m 23 sec
Reputation Power: 1349
Quote:
Originally Posted by jmurrayhead
LOL ya pointless troll
Dude I couldn't help that it was extremely funny

Jim this chicken ..... it's raw ..... set phasers on roast! lol

Reply With Quote
  #8  
Old November 30th, 2007, 07:37 PM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
The Drunken Moderator
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2004
Location: Reston, VA, USA
Posts: 13,038 jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate Folder
Time spent in forums: 3 Months 5 Days 15 h 46 sec
Reputation Power: 1563
Facebook
Quote:
Originally Posted by lewy
Dude I couldn't help that it was extremely funny

Jim this chicken ..... it's raw ..... set phasers on roast! lol


lol I was thinking more along the lines of "American Pie" and Nadia, "Dear Jim" (Pronounced "Jeeem")
Comments on this post
Nilpo agrees: Hahaha!

Reply With Quote
  #9  
Old December 1st, 2007, 03:55 AM
PhilCollins99's Avatar
PhilCollins99 PhilCollins99 is offline
The Constant Student
ASP Free Novice (500 - 999 posts)
 
Join Date: Aug 2004
Location: England
Posts: 913 PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level)PhilCollins99 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 5 h 40 m 9 sec
Reputation Power: 27
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.

Reply With Quote
  #10  
Old December 1st, 2007, 06:43 AM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
The Drunken Moderator
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2004
Location: Reston, VA, USA
Posts: 13,038 jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate FolderFolding Points: 79068 Folding Title: Intermediate Folder
Time spent in forums: 3 Months 5 Days 15 h 46 sec
Reputation Power: 1563
Facebook
Quote:
Originally Posted by PhilCollins99
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.


lol Nope, lewy isn't Jim. There probably is a Jim somewhere around here

Reply With Quote
  #11  
Old December 2nd, 2007, 08:59 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,642