prnport.vbs windows 2000

  • Thread starter Thread starter xxlgreg
  • Start date Start date
X

xxlgreg

Guest
Hello All
I have a problem using a script prnport.nbs on Windows 2000. I need to
install two different printers with four different tcp/ip ports on 200
pc's.
I've prepeared script that works fine on XP but doesn`t work on win2K.

ON XP:
1 adding port (works fine)
%windir%\system32\cscript %windir%\system32\prnport.vbs -a -r
IP_1.1.1.1 -h %ip1% -o lpr -q 1.1.1.1
2 adding printer
rundll32 printui.dll,PrintUIEntry /if /b "Xerox WorkCentre 4150" /f
F:\XWC4150_Win2Kpl\X415SPCL.INF /r IP_1.1.1.1 /m "Xerox WorkCentre
4150"

When I run this script on Win2000 (on local computer) i allways get
message : (I put prnport.vbs from xpsp2 into system32 folder )
1. %windir%\system32\cscript %windir%\system32\prnport.vbs -a -r
IP_1.1.1.1 -h 1.1.1.1 -o lpr -q IP_1.1.1.1


I don`t have English ver. 2000 so i'll try to translate)
Can't use port Error 0x80041002

Could anybody help me to install those printers on Win2k?

Kind regards
Greg


--
xxlgreg
------------------------------------------------------------------------
xxlgreg's Profile: http://forums.techarena.in/member.php?userid=37109
View this thread: http://forums.techarena.in/showthread.php?t=869975

http://forums.techarena.in
 
Prnport in Windows 2000

Prnport in Windows 2000

Greg,

You receive the error because the function to script the tcpip port is not supported in Windows 2000.

It was added to Windows XP OS.

I tried many things but was unsuccessful. So, I wrote a program in Visual FoxPro to install printers and TCPIP ports for both XP and 2000.



Harv

EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
Back
Top