PC Review


Reply
Thread Tools Rate Thread

Re: Adding a printer/port Commandline - Auto installing printers/portd

 
 
Alan Morris [MSFT]
Guest
Posts: n/a
 
      24th Sep 2009

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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a printer/port Commandline - Auto installing printers/portd =?Utf-8?B?RmlqaSBTbWl0aHk=?= Windows XP Print / Fax 6 25th May 2010 06:52 PM
Re: Adding a printer/port Commandline - Auto installing printers/portd Alan Morris [MSFT] Windows XP Print / Fax 0 23rd Sep 2009 06:10 PM
Re: Adding a printer/port Commandline - Auto installing printers/portd Alan Morris [MSFT] Windows XP Print / Fax 0 22nd Sep 2009 11:25 PM
Re: Adding a printer/port Commandline - Auto installing printers/portd Alan Morris [MSFT] Windows XP Print / Fax 0 18th Sep 2009 10:33 PM
Re: Adding a printer/port Commandline - Auto installing printers/portd Alan Morris [MSFT] Windows XP Print / Fax 0 17th Sep 2009 10:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:32 PM.