We help IT Professionals succeed at work.

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

279 Views
Last Modified: 2013-12-23
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.
Comment
Watch Question

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).

Author

Commented:
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)
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.