Link to home
Start Free TrialLog in
Avatar of newroccindy
newroccindy

asked on

How do I stop a login script from terminating too soon while a program it calls is still running in the background?

We are in the process of re-mapping printers from a Novell Network to Active Directory.

Microsot Windows 2003 Login Script...

We are using the login script to map the user's printers based on the location of the computer they are logging into.

When the login script runs, it calls the program to map the printers, but then it continues on in the login script and terminates before the printer mapping is finished.

Which command can I use in the login script so that it won't terminate until the printers are finished mapping?  We don't want the user to have to click anything to close a dialog box.
Avatar of Joseph Tshiteya
Joseph Tshiteya
Flag of United States of America image

What are you using to script your login script, i.e. vbs?  If you're just using a standard .bat file, then you can enter the command pause followed by the amount of time you would like your script to wait before continuing to the next step (for example, pause 30).
Avatar of newroccindy
newroccindy

ASKER

The problem is we don't always know how long it will take.  It depends on the number of printers.  For some people we don't want them to have to wait  (or guess on the pause interval according to the longest possible time)
ASKER CERTIFIED SOLUTION
Avatar of Joseph Tshiteya
Joseph Tshiteya
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