Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - shell.application throw error on asp file

Reply
 
Old 09-22-2009   #1 (permalink)
rami4tis


 
 

shell.application throw error on asp file

Hi
i try to run tis code on asp file :

Dim objApp
Dim objWindows, objWindow
Dim objIE

Set objApp = CreateObject("shell.application")
Set objWindows = objApp.Windows()
For i=0 to objWindows.Count - 1
Set objIEWnd = objWindows.Item(i)
If objIEWnd.LocationURL = "http://www.url.com Then
Set objIE = objIEWnd
objIE.Navigate(otherurl)
End If
Next

Set objIE = Nothing
Set objWindow = Nothing
set objWindows = Nothing
Set objApp = Nothing

ive got tis error :

"Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object "

the os is windows server 2003 ,

what is wrong ?
what can i do ?
any ideas ?

thanks in advance ,
poli

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
shell.application VB Script
can shell.application do this? PowerShell
how to get permission for Shell.Application in JScript in local files (file://...html)? Vista security
Shell.Application Open method doesn't seem to VB Script
problem with shell.application PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46