lyledg Posted September 9, 2004 Share Posted September 9, 2004 Guys I am creating a GUI logon script, which in the code launces IE and displays a *.htm file from a server UNC path location. When I run the script manually from my PC, it launches the browser and the file displays normally, and IE remains open but when I run the compiled exe from the logon process, it launches the IE browser, but then exits the browser immedialtely... What I am needing is that the IE browser stays running and does not exit.. Here is the code, simple enough.. Global $File = ("\\<Servername>\motd$\MOTD.htm") If FileExists("\\<Servername>\motd$\MOTD.htm") then Run(@ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE" & " " & $file ) Else MsgBox(0, "MOTD", "No Message of the day..., continuing", 1) Endif I have tried using Runwait, but this won't do because as this is part of the logon process, I want the page displayed and the rest of the script to continue... Any Ideas? Cheers Lyle Link to comment Share on other sites More sharing options...
lyledg Posted September 9, 2004 Author Share Posted September 9, 2004 Just a quick question, would the Winwait command help here at all? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now