Discussion Locked

logon script name

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

how can i put two batch files to execute in logon script name field in user mananger for a particular user in Windows NT. I have no problem to run one batch file but it dosn't work with two batch files in 'logon script name' field .

Please suggest as soon as possible.

7 replies

by fons.maartens

Make a simple batch file containing two lines to start both batch files, control the order in witch they run with the start command (you can specify f.i. to run minimized, and wait til excecution finishes)
Place the name in the "run login script" in usermanager

by erikdr

Yep, this works... IF...

you include 'EXIT' as the last statement of the very first action batch file.
Without this, control will never ever return to the main batch...

HTH,

- Netherlands

by zchris

just add this line in the first batch:

call 2ndbatch.bat

thats it

you dont have to add an "exit" into the file

This discussion is closed to new replies.