Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get the actual website

Status
Not open for further replies.
The following code will launch the given URL and then return the actual URL information.

Code:
Set IE = createobject("internetexplorer.application")
IE.navigate "[URL unfurl="true"]http://www.yellowbook.com/link/?listingId=1821815872&listingTypeId=2&sessionUID=www1044a5fc428450c7&visitorUID=www1114a5c10783bbe3&searchUID=e7e69632-102c-421f-b6ea-e8b4f11895d3&webRequestUID=9c45b767-f70b-4039-b7f6-8a57d72bbbcf&userId=apirinte01&siteId=1"[/URL] 	
IE.visible = true
 
Set objShell = CreateObject("Shell.Application")
Set objShellWindows = objShell.Windows
 
For i = 0 to objShellWindows.Count - 1
    Set objIE = objShellWindows.Item(i)
    strURL = objIE.LocationURL
	If Left(strURL,4) = "http" Then
		WScript.Echo strURL
	End IF
Next
IE.Quit

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
A shorter version. I could not get this to work earlier because I had to wait for IE to not be busy...

Code:
Set IE = CreateObject("internetexplorer.application")
IE.navigate "[URL unfurl="true"]http://www.thespidersparlor.com"[/URL]
IE.visible = true
Do While IE.Busy = True
	WScript.Sleep 2000 
Loop
WScript.Echo "URL:" & IE.LocationURL
IE.Quit

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top