Sign in to follow this  
Followers 0
lyledg

Problems running app from logon script

2 posts in this topic

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

Share this post


Link to post
Share on other sites



Just a quick question, would the Winwait command help here at all?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0