Jump to content

Cannot create Object "Internet Explorer"


Recommended Posts

Posted

Hey all,

Im sort of a newbie when it comes to winPE and vbs. i am editing a data transfer script that involves an html page that gets info and passes it along the vbs and i am trying to get it to work in winpe enviorment. I keep getting "Could not locate the automation class named "InternetExplorer.Application" I am using Reatoga program to build my WinPe disc and it will run correctly when Im booted into the machine and then pop the cd in and run the script. But while actually booting from the cd into WinPE it will not work. Any Help would be greatly appreciated. Internet explorer works in WinPE (Internet browsing) and is registered.

Internet explorer is called iexplore.exe and is located in the i386 folder.

Thanks

Here is the code:

path = WScript.ScriptFullName

path = Left(path, InstrRev(path, "\"))

'create IE Window to Get user input

Set IE = WScript.CreateObject("InternetExplorer.Application")

IE.left=0

IE.top = 50

IE.height = 500

IE.width = 950

IE.menubar = 0

IE.toolbar = 0

IE.statusbar = 0

IE.resizable = 1

IE.navigate path + "Bin\OldData.html"

IE.visible = 1

WScript.Sleep 2000


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...