English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

im trying to map the printer so that user logged onto each com notify which printer will b use(closest)

all printer is mapped
Eg. user1 is in area1 using com1 nearest printer is print1
then he go to area2 use com2 to print thing when logged on the com will auto link to to the nearest printer(print2)

how can i do tt ?

im not really gd in vbs so pls kindly help
thx

2007-03-07 12:54:26 · 3 answers · asked by Lon 1 in Computers & Internet Programming & Design

there over 100 computer and there different dept and different dept share different printer...so i would want to : like the system will tell u which printer will be printing the thing (which the printer hav to b the nearest at least)

2007-03-07 13:08:58 · update #1

sorry for using"com1" for computer1 ...im just lazy to key

for what u hav say:

The login script on the server can have this roaming information. No matter where are you login in from, your login profile will intelligently pick up the closest printer.

how can this be done?

any script to share or anything tt can achieve this?

2007-03-07 13:17:31 · update #2

3 answers

Here is part of a .bat file I use to assign the correct printer when I rebuild a machine. It should work if you use it in a logon script. The printer must already be installed on the machine, and you identify it by the name in quotes (must be the installed name on the machine) In \windows\system32 run cscript prnmngr.vbs for other options.

ECHO Set Default Printer
CD %systemroot%\system32

IF %computername:~5,1% == 2 GOTO SECOND
IF %computername:~5,1% == 3 GOTO THIRD

:SECOND
cscript prnmngr.vbs -t -p "B250 Printer"
GOTO GRID

:THIRD
cscript prnmngr.vbs -t -p "B310 Printer"

2007-03-07 13:46:47 · answer #1 · answered by Gene M 6 · 1 0

"user1 is in area1 using com1 ..."

Please don't use com1 for Computers as com1 is the serial/communication port on every computer and it is creating a confusion since we are dealing with devices here.

"all printer is mapped
Eg. user1 is in area1 using computer1 nearest printer is print1
then he go to area2 use computer2 to print thing when logged on the com will auto link to to the nearest printer(print2)"

It these printers are on the network then anyone can print on that printer as long as the user is on the same subnet.

The login script on the server can have this roaming information. No matter where are you login in from, your login profile will intelligently pick up the closest printer.
It should be done on the engineering side and all the machines in that area must be configured compliant to the company policies.

In VBS you can automate things but when it comes to devices you have to provide enough iinfo. at least once to the system so that it could work as a robot for you in the future. --- Good luck!

2007-03-07 21:11:31 · answer #2 · answered by test u 1 · 0 0

I assume you're on a company network. Once you're in the printer setup dialog, you will have to find the location of the printer on the network. From this same setup screen, you can do a search. If you still can't find it, you might have to ask the network administrator of it's location. After it's found, all you have to do is right click the click on "Map to This Printer."

Chuck
http://www.ebusinesswiz.com

2007-03-07 21:00:57 · answer #3 · answered by Dakota 5 · 0 0

fedest.com, questions and answers