login scripts

windows 2003 login script does not close cmd window when it done executing.  When it is run as a local batch file if closes fine, but when it is added to the user  profiles it excutes the files correctly but just never closes the cmd window.
nsmrlAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Rob WilliamsConnect With a Mentor Commented:
Try adding a line to the end of the script with just
Exit
0
 
Steve KnightConnect With a Mentor IT ConsultancyCommented:
Or if not somtimes this works:

cls
exit

as unless the window is blank it will remain on

Are you sure it IS completing too.  put an

Echo **** completed **** & pause

on the last line to check it gets there!

Steve
0
 
nsmrlAuthor Commented:
Resolved thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.