Jump to content

Problems running app from logon script


lyledg
 Share

Recommended Posts

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

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
 Share

  • Recently Browsing   0 members

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