Link to home
Start Free TrialLog in
Avatar of Jim King
Jim KingFlag for United States of America

asked on

Suspending XP login until login script (.CMD) completes?

Hello,

I have written a .CMD login script that will run in an XP Pro environment. Basically the script does 2 things. First it copies a file from a server to the local machine (the file happens to be an .EXE). Then it executes the program. Here's the catch, I would like the login process to be susupended until the .EXE (and thus the .CMD) file has completed.

Pretty much, the purpose of the .EXE is for the user to acknowledge an AUP statement and until they do so, they should not be able to move on in the process of logging onto the computer.

Any ideas would be greatly appreciated.

Thanks,
Jim
Avatar of dalton1976
dalton1976
Flag of Canada image

Why did'nt you place thoses line in the logon script?  (like before others lines)
Avatar of Jim King

ASKER

The logon script only has those two lines. That is it's only function in life.

The actual command window does stay open until the .EXE is complete. But the logon process continues around it. For example, while the .EXE is running (the AUP acceptance window) the user can still fire up Outlook, using Microsoft Word, etc.

I'd like to be able to halt the user from doing anything until after they close the application that was started in the logon script.
ha ok so change the line to:  

start "your exe"
ASKER CERTIFIED SOLUTION
Avatar of Shift-3
Shift-3
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Winbatch is a good option for scripting and supports what you want - http://techsupt.winbatch.com/TS/T000001049F4.html

VBScript will do it too...
http://www.pcreview.co.uk/forums/thread-531920.php
I should clarify and say that you could throw up a splash screen and time it so that your application finishes before you give keyboard/mouse control back to the user.  This would have the effect of suspending login until the batch file finishes.
Thanks to everyone for all of the helpful suggestions!