Discussion Locked

Closing Logon Script

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

G'day,

I have a logon script that uses xcopy to install some word viewers etc. The script will finish all commands, and an exit call will close the dos msdos window, however there is still the message box "please wait while your logon script executes..."

Is there a way to pass the fact that the script has finished and windows should now be run, instead of hanging with the please wait window.

Cheers.

5 replies

by mpdcsup

Do I assume correctly that the "please wait while your logon script executes..." message box is an .exe that you have created? If so, rework the program to sense if it is already running -- if so, shut down the running instance. Start the program as usual, but execute it again at the end of the logon script. The technique uses the Windows API. If it sound like I have a handle on the question, let me know and I'll point you towards the specific calls you need. VB is good enough for the task.

by adz666

Windows should automatically sense that the script has finished, & close the "Please wait while your login script executes" box, even without an "exit" in the script. It could be the PC at fault, so I'd try running it on a different PC. Also, try running an empty login script to make sure it's not the commands in yours that are the problem.

This discussion is closed to new replies.