login scripts and batch commands - TechRepublic
General discussion
October 21, 2002 at 09:55 PM
waskhan

login scripts and batch commands

by waskhan . Updated 23 years, 8 months ago

i need to modify user login scripts so that when users log in on a client machine in a particular area of the building the login script should map LPT1 to the network printer port that is physically located in that room. i need to do this in order that users can print from some of our older dos based databases.

as an example a user may be in room n107 which has the network printer \\server\n107-laser located in it. the user can print from all windows based programs but in order to print from a dos database, the printer has to be captured to lpt1. i would like this capture to take place at login. The user then goes to room e118 which has a network printer called \\server\e118-laser physically located in it, therfore the script needs to be able to check the printer name on the client machine and in turn then capture that particular printer to lpt1.

i know that this can be achieved by using batch commands but unfortunately i do not have enough knowledge of this and i would be verygrateful for any help that you can give me:

thanks

This discussion is locked

All Comments