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
>