WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Adding a printer/port Commandline - Auto installing printe..

 
Goto page Previous  1, 2
   Home -> Windows -> Print & Fax RSS
Next:  CD drive thinks it's a floppy drive  
Author Message
Alan Morris [MSFT]

External


Since: Oct 25, 2005
Posts: 539



(Msg. 9) Posted: Wed Sep 23, 2009 11:05 am
Post subject: Re: Adding a printer/port Commandline - Auto installing printers/portd [Login to view extended thread Info.]
Archived from groups: microsoft>public>windowsxp>print_fax (more info?)

I will assume you extracted the necessary files from the cabs and placed
them in C:\INF\HP4345PCL6.


Have you attempted this using a flat file set (all binaries expanded)? Give
it a shot at least.


--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.

"johnism" <johnism.3yyzja DeleteThis @DoNotSpam.com> wrote in message
news:johnism.3yyzja@DoNotSpam.com...
>
> tried pcl 6
> Cscript C:\WINNT\System32\prndrvr.vbs -a -m "HP LaserJet 4345 mfp PCL
> 6" -v 3 -e "Windows NT x86" -h C:\INF\HP4345PCL6 -i
> C:\INF\HP4345PCL6\hpc4345c.inf
>
> returned error code 2
>
>
> --
> johnism
> ------------------------------------------------------------------------
> johnism's Profile: http://forums.techarena.in/members/136174.htm
> View this thread: http://forums.techarena.in/xp-print-fax/1247812.htm
>
> http://forums.techarena.in
>
Back to top
Login to vote
johnism

External


Since: Sep 24, 2009
Posts: 1



(Msg. 10) Posted: Thu Sep 24, 2009 1:05 pm
Post subject: Re: Adding a printer/port Commandline - Auto installing printers/portd [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

expaneding the cab file worked ...sorry I forgot that one. Now the do
you see where I may be off here ..
Cscript C:\WINNT\System32\prnmngr.vbs -a -m "HP LaserJet 4345 mfp PCL
6" -r IP_165.245.192.245 -p "HP LaserJet 4345 mfp PCL 6"

returns error
specified port unknow...
WIN32 error code 1796

here is the whole comand

@ECHO OFF
:START
MKDIR C:\INF
XCOPY \\nkcmapps\vol1\desktoptools\DRIVERS\PRINTERS\INF "C:\INF" /Y /H
/Q /E

Cscript C:\WINNT\System32\Prnport.vbs -a -r IP_1 -h 165.245.192.245 -o
raw

Cscript C:\WINNT\System32\prndrvr.vbs -a -m "HP LaserJet 4345 mfp PCL
6" -v 3 -e "Windows NT x86" -h C:\INF\HP4345PCL6 -i
C:\INF\HP4345PCL6\hpc4345c.inf

Cscript C:\WINNT\System32\prnmngr.vbs -a -m "HP LaserJet 4345 mfp PCL
6" -r IP_165.245.192.245 -p "HP LaserJet 4345 mfp PCL 6"



Thanks agian,
john


--
johnism
------------------------------------------------------------------------
johnism's Profile: http://forums.techarena.in/members/136174.htm
View this thread: http://forums.techarena.in/xp-print-fax/1247812.htm

http://forums.techarena.in
Back to top
Login to vote
Alan Morris [MSFT]

External


Since: Oct 25, 2005
Posts: 539



(Msg. 11) Posted: Thu Sep 24, 2009 1:05 pm
Post subject: Re: Adding a printer/port Commandline - Auto installing printers/portd [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yes

The port name you are adding is not the port name you are assigning the
printer
-r IP_1 in prnport.vbs
-r IP_165.245.192.245 in prnmngr.vbs



--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.

"johnism" <johnism.3z0zrb.RemoveThis@DoNotSpam.com> wrote in message
news:johnism.3z0zrb@DoNotSpam.com...
>
> expaneding the cab file worked ...sorry I forgot that one. Now the do
> you see where I may be off here ..
> Cscript C:\WINNT\System32\prnmngr.vbs -a -m "HP LaserJet 4345 mfp PCL
> 6" -r IP_165.245.192.245 -p "HP LaserJet 4345 mfp PCL 6"
>
> returns error
> specified port unknow...
> WIN32 error code 1796
>
> here is the whole comand
>
> @ECHO OFF
> :START
> MKDIR C:\INF
> XCOPY \\nkcmapps\vol1\desktoptools\DRIVERS\PRINTERS\INF "C:\INF" /Y /H
> /Q /E
>
> Cscript C:\WINNT\System32\Prnport.vbs -a -r IP_1 -h 165.245.192.245 -o
> raw
>
> Cscript C:\WINNT\System32\prndrvr.vbs -a -m "HP LaserJet 4345 mfp PCL
> 6" -v 3 -e "Windows NT x86" -h C:\INF\HP4345PCL6 -i
> C:\INF\HP4345PCL6\hpc4345c.inf
>
> Cscript C:\WINNT\System32\prnmngr.vbs -a -m "HP LaserJet 4345 mfp PCL
> 6" -r IP_165.245.192.245 -p "HP LaserJet 4345 mfp PCL 6"
>
>
>
> Thanks agian,
> john
>
>
> --
> johnism
> ------------------------------------------------------------------------
> johnism's Profile: http://forums.techarena.in/members/136174.htm
> View this thread: http://forums.techarena.in/xp-print-fax/1247812.htm
>
> http://forums.techarena.in
>
Back to top
Login to vote
johnism

External


Since: Sep 28, 2009
Posts: 1



(Msg. 12) Posted: Mon Sep 28, 2009 1:05 pm
Post subject: Re: Adding a printer/port Commandline - Auto installing printers/portd [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Score . Thanks Alan for all your help..
For future reference here is the whole comand .

@ECHO OFF
:START
MKDIR C:\INF
XCOPY \\nkcmapps\vol1\desktoptools\DRIVERS\PRINTERS\INF "C:\INF" /Y /H
/Q /E

Cscript C:\WINNT\System32\Prnport.vbs -a -r IP_165.245.192.245 -h
165.245.192.245 -o raw

Cscript C:\WINNT\System32\prndrvr.vbs -a -m "HP LaserJet 4345 mfp PCL
6" -v 3 -e "Windows NT x86" -h C:\INF\HP4345PCL6 -i
C:\INF\HP4345PCL6\hpc4345c.inf

Cscript C:\WINNT\System32\prnmngr.vbs -a -m "HP LaserJet 4345 mfp PCL
6" -r IP_165.245.192.245 -p "HP LaserJet 4345 mfp PCL 6"


--
johnism
------------------------------------------------------------------------
johnism's Profile: http://forums.techarena.in/members/136174.htm
View this thread: http://forums.techarena.in/xp-print-fax/1247812.htm

http://forums.techarena.in
Back to top
Login to vote
Display posts from previous:   
       Home -> Windows -> Print & Fax All times are: Eastern Time (US & Canada) (change)
Goto page Previous  1, 2
Page 2 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
  Windows XP
 Windows Vista
 Windows Other
 Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support