Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Login Script to run a batch file or application 1

Status
Not open for further replies.

dkwtfid

MIS
Nov 24, 2008
63
US
Can someone tell me how to add a login script at the container level that will run a batch file in Novell? We need to edit a registry entry on the workstation and instead of going out physically to every PC I would like to push out via the login script. The batch file has already been created and saved on the server. Thx.
 
You have to put a line in the script that runs an external command. The way you do that is either a @ or # before the command. This tells it the command is external.

For example:

#MYSCRIPT.BAT

The @ and # work slightly differently but serve the same purpose. The @ tells it to continue the script regardless of whether the external app finishes. the # tells it to wait till the external script finishes before continuing the login script.

If you need to set registry keys, I would highly recommend using a tool called AUTOIT to script the changes, then call the EXE file that autoit generates when compiled. Much cleaner and you won't get DOS Box popups like you do when calling a batch file.

Marvin Huffaker, MCNE
Marvin Huffaker Consulting, Inc.
A Novell Platinum Partner
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top