Page 1 of 1 1
Topic Options
#195192 - 2009-07-31 07:43 PM Addprinter using IP address
testerone Offline
Fresh Scripter

Registered: 2009-07-31
Posts: 6
Loc: United States
I am attempting to setup IP based printer mapping (No print server) for one of our remote sites. Have looked at the UDF section and edited example code based on site information. I am testing on an XP workstaton and have all the kix binaries in a local directory called c:\kix2010. When I go to a cmd prompt and rund kix32 print.kix i keep receiving. Can someone point me in the right direction?

Error : expected ')'!
script: c:\kix2010\print.kix
Line : 6

$=AddPrinter ("10.61.63.62","HP LaserJet 4250 PCL 6","c:\hplj4250\hpc4x50c.inf","HP4250 in IS",,1))

Top
#195201 - 2009-07-31 09:00 PM Re: Addprinter using IP address [Re: testerone]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4667
Loc: The Netherlands
Stupid question but you did include the AddPrinter UDF in your code right?
If not then you need to add it.

UDF Library AddPrinter() - Add IP,LPT, or COM Printers
KiXtart FAQ & How to's How to use UDFs
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#195204 - 2009-07-31 09:07 PM Re: Addprinter using IP address [Re: Mart]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4520
Loc: USA
Unless I'm completely blind, I think you have an extra ")" on the end:

$=AddPrinter ("10.61.63.62","HP LaserJet 4250 PCL 6","c:\hplj4250\hpc4x50c.inf","HP4250 in IS",,1))

Top
#195206 - 2009-07-31 09:11 PM Re: Addprinter using IP address [Re: Allen]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4667
Loc: The Netherlands
 Originally Posted By: Allen
Unless I'm completely blind, I think you have an extra ")" on the end:
....


Didn't even see that one Still the question is valid.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#195223 - 2009-08-03 04:05 PM Re: Addprinter using IP address [Re: Mart]
testerone Offline
Fresh Scripter

Registered: 2009-07-31
Posts: 6
Loc: United States
The extra Parenthisis was a typo when I cut and pasted into the post. I did include the UDF data within the code. After doing some additional troubleshooting I am now able to at least get the script to run (comma's were missing), however I now receive a "The Arguments are Invalid". When I step through in debug mode it appears to be subsequent to the "Shell $printercmd" statement in the UDF code. Advise? Thanks in advance.
Top
#195225 - 2009-08-03 04:51 PM Re: Addprinter using IP address [Re: testerone]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4520
Loc: USA
Can you post your updated addprinter line?

There are a few requirements for this UDF... Admins permissions needed by the person running it (or some sort of elevated rights). Win2k and above, although honestly I haven't tested it on Vista or Win7.

Top
#195226 - 2009-08-03 05:22 PM Re: Addprinter using IP address [Re: Allen]
testerone Offline
Fresh Scripter

Registered: 2009-07-31
Posts: 6
Loc: United States
Thanks for quick reply. Am running locally on XP workstation with admin rights for testing purposes.
$=AddPrinter("10.61.63.62","HP LaserJet 4250 PCL 6","C:\hplj4250\hpc4x50c.inf","HP tester",,"1")

Top
#195228 - 2009-08-03 07:09 PM Re: Addprinter using IP address [Re: testerone]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4520
Loc: USA
Two things... you might temporarily modify the UDF at the shell line to find out what is going on...

? $printercmd
shell $printercmd
? @serror


I have seen in the past where in the INF file it is not so obvious what the printer description is... you might post the contents of that for us to look over too.

Top
#195229 - 2009-08-03 07:28 PM Re: Addprinter using IP address [Re: Allen]
testerone Offline
Fresh Scripter

Registered: 2009-07-31
Posts: 6
Loc: United States
I added the question mark in front of the "$printercmd" but I wasnt sure where you wanted me to add the "?serror" When I ran it with just the one edit it came back with the same error. below I have pasted the contents of the .inf file.

;Hewlett-Packard LaserJet combined printer driver INF file for Windows 2000 and XP
;Copyright Hewlett-Packard 2004

[Version]
Signature="$Windows NT$"
Provider=%HP%
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
DriverPackageType=PlugAndPlay
DriverPackageDisplayName=%HP_Mombi_Driver_Name%
DriverPackageDisplayName=%HP_Mombi_Driver_Name_1%
DriverPackageDisplayName=%HP_Mombi_Driver_Name_2%
CatalogFile=hpc4x50c.cat
DriverVer=03/18/2008,61.074.561.43

; Manufacturer section.
;
; This section lists all of the manufacturers
; that we will display in the Dialog box
;The format of TargetOSVersion, the version decoration, is as follows:
;NT[Architecture][.[OSMajorVersion][.[OSMinorVersion][.[ProductType][.SuiteMask]]]]

;NT
;Operating system version recognition is supported for Windows XP and later NT-based operating systems.
;
;Architecture
;Identifies the hardware platform. This must be x86 or ia64.
;
;OSMajorVersion
;A number representing the operating system's major version number. For Windows XP, this number is 5.
;
;OSMinorVersion
;A number representing the operating system's minor version number. For Windows XP, this number is 1.
;
;ProductType
;0x0000003 (VER_NT_SERVER)

[MANUFACTURER]
%HP%=HP,NT.6.0

; Model sections
;
; Each section here corresponds with an entry listed in the
; [Manufacturer] section, above. The models will be displayed in the order
; that they appear in the INF file.

[HP]
"HP LaserJet 4250 PCL 6" = HPC42506.GPD,LPTENUM\Hewlett-Packardhp_La1AE6,Hewlett-Packardhp_La1AE6,USBPRINT\Hewlett-Packardhp_La1AE6,Hewlett-Packardhp_La1AE6,USBPRINT\VID_03F0&PID_2417,DOT4PRT\Hewlett-Packardhp_La1AE6,Hewlett-Packardhp_La1AE6,DOT4PRT\VID_03F0&PID_2417,DOT4PRT\Hewlett-Packardhp_La1AE6&PRINT_HPZ,DOT4PRT\VID_03F0&PID_2417&PRINT_HPZ,DOT4PRT\Hewlett-Packardhp_La1AE6&DOT4&PRINT_HPZ,DOT4PRT\VID_03F0&PID_2417&DOT4&PRINT_HPZ
"HP LaserJet 4350 PCL 6" = HPC43506.GPD,LPTENUM\Hewlett-Packardhp_LaDAB7,Hewlett-Packardhp_LaDAB7,USBPRINT\Hewlett-Packardhp_LaDAB7,Hewlett-Packardhp_LaDAB7,USBPRINT\VID_03F0&PID_2317,DOT4PRT\Hewlett-Packardhp_LaDAB7,Hewlett-Packardhp_LaDAB7,DOT4PRT\VID_03F0&PID_2317,DOT4PRT\Hewlett-Packardhp_LaDAB7&PRINT_HPZ,DOT4PRT\VID_03F0&PID_2317&PRINT_HPZ,DOT4PRT\Hewlett-Packardhp_LaDAB7&DOT4&PRINT_HPZ,DOT4PRT\VID_03F0&PID_2317&DOT4&PRINT_HPZ
"HP LaserJet 4240 PCL 6" = HPC42406.GPD,LPTENUM\Hewlett-Packardhp_La8AE7,Hewlett-Packardhp_La8AE7,USBPRINT\Hewlett-Packardhp_La8AE7,Hewlett-Packardhp_La8AE7,USBPRINT\VID_03F0&PID_6A17,DOT4PRT\Hewlett-Packardhp_La8AE7,Hewlett-Packardhp_La8AE7,DOT4PRT\VID_03F0&PID_6A17,DOT4PRT\Hewlett-Packardhp_La8AE7&PRINT_HPZ,DOT4PRT\VID_03F0&PID_6A17&PRINT_HPZ,DOT4PRT\Hewlett-Packardhp_La8AE7&DOT4&PRINT_HPZ,DOT4PRT\VID_03F0&PID_6A17&DOT4&PRINT_HPZ

;************************************
;VISTA
;************************************
[HP.NT.6.0]

"HP LaserJet 4250 PCL 6" = HPC42506.GPD.NT.6.0,LPTENUM\Hewlett-Packardhp_La1AE6,Hewlett-Packardhp_La1AE6
"HP LaserJet 4250 PCL 6" = HPC42506.GPD.NT.6.0,USBPRINT\VID_03F0&PID_2417

"HP LaserJet 4250 PCL 6" = HPC42506.GPD.NT.6.0,USBPRINT\Hewlett-Packardhp_La1AE6,Hewlett-Packardhp_La1AE6
"HP LaserJet 4250 PCL 6" = HPC42506.GPD.NT.6.0,DOT4PRT\Hewlett-Packardhp_La1AE6,Hewlett-Packardhp_La1AE6
"HP LaserJet 4250 PCL 6" = HPC42506.GPD.NT.6.0,DOT4PRT\VID_03F0&PID_2417



"HP LaserJet 4350 PCL 6" = HPC43506.GPD.NT.6.0,LPTENUM\Hewlett-Packardhp_LaDAB7,Hewlett-Packardhp_LaDAB7
"HP LaserJet 4350 PCL 6" = HPC43506.GPD.NT.6.0,USBPRINT\VID_03F0&PID_2317

"HP LaserJet 4350 PCL 6" = HPC43506.GPD.NT.6.0,USBPRINT\Hewlett-Packardhp_LaDAB7,Hewlett-Packardhp_LaDAB7
"HP LaserJet 4350 PCL 6" = HPC43506.GPD.NT.6.0,DOT4PRT\Hewlett-Packardhp_LaDAB7,Hewlett-Packardhp_LaDAB7
"HP LaserJet 4350 PCL 6" = HPC43506.GPD.NT.6.0,DOT4PRT\VID_03F0&PID_2317



"HP LaserJet 4240 PCL 6" = HPC42406.GPD.NT.6.0,LPTENUM\Hewlett-Packardhp_La8AE7,Hewlett-Packardhp_La8AE7
"HP LaserJet 4240 PCL 6" = HPC42406.GPD.NT.6.0,USBPRINT\VID_03F0&PID_6A17

"HP LaserJet 4240 PCL 6" = HPC42406.GPD.NT.6.0,USBPRINT\Hewlett-Packardhp_La8AE7,Hewlett-Packardhp_La8AE7
"HP LaserJet 4240 PCL 6" = HPC42406.GPD.NT.6.0,DOT4PRT\Hewlett-Packardhp_La8AE7,Hewlett-Packardhp_La8AE7
"HP LaserJet 4240 PCL 6" = HPC42406.GPD.NT.6.0,DOT4PRT\VID_03F0&PID_6A17


; OEM URLS
;
; This sections gives the URL for manufacturers found in the Manufacturers section
[OEM URLS]
%HP% = "http://go.microsoft.com/fwlink/?LinkID=37&prd=10798&sbp=Printers"

;
; MS Driver Core installs
;
; These sections are used by Printer OEMs to install MS provided drivers

; Installer Sections
;
; These sections control file installation, and reference all files that
; need to be copied. The section name will be assumed to be the driver
; file, unless there is an explicit DriverFile section listed.
;




[HPC42506.GPD]
CopyFiles=VENDOR_SETUP,DATA_FILES,HPPRPROC,UI,PCL6RENDER,DMC_x86,EAC,GPD_PCL6_COMMON1,4250_FILES,STRING_DLL,MANUAL_DUPLEX,RES_PCL6,PCLXL_GPD_P3,HELP,HP_UNIDRV,SERVICES,PNPDLL,PNPDLL_SYSCOPY,CAPI_32

DataFile=HPC42506.GPD
DriverFile=unidrv.dll
ConfigFile=hpmdp5r1.dll
HelpFile=unidrv.hlp
PrintProcessor=%PRINT_PROCESSOR%
AddReg=EACDirect.AddReg


[HPC42506.GPD.NT.6.0]

CopyFiles=VENDOR_SETUP,HPPRPROC,DATA_FILES,UI,PCL6RENDER,DMC_x86,EAC,GPD_PCL6_COMMON1,4250_FILES,STRING_DLL,MANUAL_DUPLEX,RES_PCL6,PCLXL_GPD_P3,HELP,SERVICES,HP_UNIDRV,PNPDLL,PNPDLL_SYSCOPY,CAPI_32

DataFile=HPC42506.GPD
DriverFile=unidrv.dll
ConfigFile=hpmdp5r1.dll
HelpFile=unidrv.hlp
PrintProcessor=%PRINT_PROCESSOR%
AddReg=EACDirect.AddReg


[HPC42406.GPD]
CopyFiles=VENDOR_SETUP,HPPRPROC,DATA_FILES,UI,PCL6RENDER,DMC_x86,EAC,GPD_PCL6_COMMON1,4240_FILES,STRING_DLL,MANUAL_DUPLEX,RES_PCL6,PCLXL_GPD_P3,HELP,HP_UNIDRV,SERVICES,PNPDLL,PNPDLL_SYSCOPY,CAPI_32
DriverFile=unidrv.dll
ConfigFile=hpmdp5r1.dll
HelpFile=unidrv.hlp
DataFile=HPC42406.GPD
PrintProcessor=%PRINT_PROCESSOR%
DelFiles=DEL9xFILE
AddReg=EACDirect.AddReg


[HPC42406.GPD.NT.6.0]

CopyFiles=VENDOR_SETUP,HPPRPROC,DATA_FILES,UI,PCL6RENDER,DMC_x86,EAC,GPD_PCL6_COMMON1,4240_FILES,STRING_DLL,MANUAL_DUPLEX,RES_PCL6,PCLXL_GPD_P3,HELP,SERVICES,HP_UNIDRV,PNPDLL,PNPDLL_SYSCOPY,CAPI_32

DataFile=HPC42406.GPD
DriverFile=unidrv.dll
ConfigFile=hpmdp5r1.dll
HelpFile=unidrv.hlp
PrintProcessor=%PRINT_PROCESSOR%
AddReg=EACDirect.AddReg



[HPC43506.GPD]

CopyFiles=VENDOR_SETUP,HPPRPROC,UI,DATA_FILES,PCL6RENDER,DMC_x86,EAC,GPD_PCL6_COMMON1,4350_FILES,STRING_DLL,MANUAL_DUPLEX,RES_PCL6,PCLXL_GPD_P3,HELP,HP_UNIDRV,SERVICES,PNPDLL,PNPDLL_SYSCOPY,CAPI_32
DriverFile=unidrv.dll
ConfigFile=hpmdp5r1.dll
HelpFile=unidrv.hlp
DataFile=HPC43506.GPD
PrintProcessor=%PRINT_PROCESSOR%
AddReg=EACDirect.AddReg



[HPC43506.GPD.NT.6.0]

CopyFiles=VENDOR_SETUP,HPPRPROC,DATA_FILES,UI,PCL6RENDER,DMC_x86,EAC,GPD_PCL6_COMMON1,4350_FILES,STRING_DLL,MANUAL_DUPLEX,RES_PCL6,PCLXL_GPD_P3,HELP,HP_UNIDRV,SERVICES,PNPDLL,PNPDLL_SYSCOPY,CAPI_32
DriverFile=unidrv.dll
ConfigFile=hpmdp5r1.dll
HelpFile=unidrv.hlp
DataFile=HPC43506.GPD
PrintProcessor=%PRINT_PROCESSOR%
AddReg=EACDirect.AddReg

[EACDirect.AddReg]

HKLM,"SOFTWARE\Hewlett-Packard\San Diego Shared IO", DirectConnectBidiSupported, 0x00010001, 1


; Copy Sections
;
; Lists of files that are actually copied. These sections are referenced
; from the installer sections, above. Create a section, even if it
; only copies a single file, rather than using the @filename notation. This
; will ensure compatibility with the NOVELL P&P Environment too.
; If it's a color profile (since the DestinationDirs can only handle sections, and not
; individual files) then a section is a must.

;Name of the File to be deleted
[DEL9xFILE]
hpzimn12.DLL
[PrinterPackageInstallation.x86]
PackageAware=TRUE

[VENDOR_SETUP]
hpbicoin.dll,,,0x00000020

[CAPI_32]
hpcc35r1.DLL,hpcc35r1.DLL,,0x00000020


[HPPRPROC]
hpcpp5r1.DLL,hpcpp5r1.DLL,,0x00000020

[UI]
hpcui5r1.DLL,hpcui5r1.DLL,,0x00000020
hpcpe5r1.DLL,hpcpe5r1.DLL,,0x00000020
hpmdp5r1.dll,hpmdp5r1.dll,,0x00000020

[PCL6RENDER]
hpc6r5r1.DLL,hpc6r5r1.DLL,,0x00000020

[DATA_FILES]
hplj4x50.CFG,hplj4x50.CF_,,0x00000020
hpc4x506.gpd,hpc4x506.GPD,,0x00000020
hpcsc5r1.dtd,hpcSC5r1.DTD,,0x00000020

[GPD_PCL6_COMMON1]
hpc6m5r1.GPD,hpc6m5r1.GPD,,0x00000020
hpcsm5r1.GPD,hpcsm5r1.GPD,,0x00000020

[STRING_DLL]
hpcst5r1.DLL,hpcst5r1.DLL,,0x00000020
hpcsat.dll,,,0x00000020
hpcur5r1.dll,hpcur5r1.dll,,0x00000020

[4250_FILES]
HPC42506.GPD,HPC42506.GPD,,0x00000020
hpc4250c.ini,HPC4250c.INI,,0x00000020
hpc42506.xml,HPC42506.XML,,0x00000020

hpcP6.hpx,hpcP6.hpx,,0x00000020

[4240_FILES]


HPC42406.GPD,HPC42406.GPD,,0x00000020
hpc4240c.ini,HPC4240c.INI,,0x00000020
hpc42406.xml,HPC42406.XML,,0x00000020
hpcP6.hpx,hpcP6.hpx,,0x00000020


[4350_FILES]

HPC43506.GPD,HPC43506.GPD,,0x00000020
hpc4350c.ini,HPC4350c.INI,,0x00000020
hpc43506.xml,HPC43506.XML,,0x00000020
hpcP6.hpx,hpcP6.hpx,,0x00000020


[MANUAL_DUPLEX]
hpcev5r1.DLL,hpcev5r1.DLL,,0x00000020

[HELP]
hpcHL5r1.CAB,hpcHL5r1.CAB,,0x00000020

[SERVICES]
hpcls5r1.DLL,hpcls5r1.DLL,,0x00000020
hpcss5r1.DLL,hpcss5r1.DLL,,0x00000020

[RES_PCL6]
pclxl.DLL,pclxl.DLL,,0x00000020

[PCLXL_GPD_P3]
pjl.GPD,pjl.GPD,,0x00000020
pclxl.GPD,pclxl.GPD,,0x00000020

;EAC related Files.
[EAC]
hpzbdi.dll,hpzbdi.dll,,0x00000020
HPZBDI32.msi,HPZBDI32.msi,,0x00000020

;DMC DLL.

[DMC_x86]
hpcdmc32.DLL,hpcdmc32.DLL,,0x00000020
hpbcfgre.DLL,hpbcfgre.DLL,,0x00000020

;
;Unidrv Core file sections
;
[HP_UNIDRV]
UNIDRV.DLL,UNIDRV.DLL,,0x00000020
UNIRES.DLL,UNIRES.DLL,,0x00000020
UNIDRVUI.DLL,UNIDRVUI.DLL,,0x00000020
STDNAMES.GPD,STDNAMES.GPD,,0x00000020
UNIDRV.HLP,UNIDRV.HLP,,0x00000020
STDDTYPE.GDL,STDDTYPE.GDL,,0x00000020
STDSCHEM.GDL,STDSCHEM.GDL,,0x00000020
STDSCHMX.GDL,STDSCHMX.GDL,,0x00000020

[PNPDLL]
hpcpn5r1.dll,hpcpn5r1.dll,,0x00000020

[PNPDLL_SYSCOPY]
hpcpn5r1.dll,hpcpn5r1.dll,,0x00000020


[SourceDisksNames]
98="HP LaserJet 4x50 PCL6 CD",HPC4x50C.CAB,,
97="HP LaserJet 4x50 PCL6 CD",%LocaleCABFile%,,
96=%DiskID%,,,""

[SourceDisksFiles]
HPC42506.GPD=98
hpc4x506.GPD=98
hpc4250c.INI=98
hpcpp5r1.DLL=98
hpcui5r1.DLL=98
hpcpe5r1.DLL=98
hpc6r5r1.DLL=98
hpcsm5r1.GPD=98
hpcst5r1.DLL=98
hpcur5r1.dll=98
hpcpn5r1.dll=98
hpzbdi.dll=98
HPZBDI32.msi=98
hpmdp5r1.dll=98


hpcP6.hpx=98
STDDTYPE.GDL=98
STDSCHEM.GDL=98
STDSCHMX.GDL=98
hpbicoin.dll=96

;ManualDuplex dll
hpcev5r1.DLL=98

;SERVICES
hpcls5r1.DLL=98
hpcss5r1.DLL=98

;DMC File
HPCDMC32.DLL=98
hpbcfgre.DLL=98
hplj4x50.CF_=96

;Automation Files
hpc42506.XML=98
hpcsc5r1.DTD=98

;Windows XP core files...
STDNAMES.GPD=98
UNIDRV.DLL=98
UNIRES.DLL=98
UNIDRVUI.DLL=98
UNIDRV.HLP=97


;HELP
HPCHL5r1.CAB=98

;PCL 6 files
pclxl.DLL=98
pjl.GPD=98
pclxl.GPD=98
hpc6m5r1.GPD=98
hpcsm5r1.GPD=98

;4350 files
HPC43506.GPD=98
hpc4350c.ini=98
hpc43506.xml=98

;4240 files
HPC42406.GPD=98
hpc4240c.ini=98
hpc42406.xml=98
hpcc35r1.DLL=98
hpcsat.dll=98


[DestinationDirs]
DefaultDestDir=66000
HPPRPROC=66001
VENDOR_SETUP=66002
PNPDLL_SYSCOPY=66002



;[String Section]

[Strings]
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2enww.cab"


[Strings.0401] ; Arabic
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2arww.cab"


[Strings.0403] ; Catalan
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2caww.cab"


[Strings.0404] ; Chinese (Traditional)
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2zhtw.cab"

[Strings.0804] ; Chinese (Simplified)
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2zhcn.cab"


[Strings.0405] ; Czech
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2csww.cab"

[Strings.0406] ; Danish
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2daww.cab"


[Strings.0413] ;Dutch
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2nlww.cab"


[Strings.0409] ; English
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2enww.cab"


[Strings.040B] ;Finnish
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2fiww.cab"


[Strings.040C] ;French
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2frww.cab"


[Strings.0407] ;German
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2deww.cab"


[Strings.0408] ;Greek
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2elww.cab"


[Strings.040D] ;hebrew
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2heww.cab"


[Strings.040E] ;Hungerian
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2huww.cab"


[Strings.0410] ;Italian
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2itww.cab"


[Strings.0411] ;Japanese
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2jaww.cab"


[Strings.0412] ;Korean
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2koww.cab"


[Strings.0814] ;Norwegian
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2noww.cab"


[Strings.0415] ;Polish
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2plww.cab"


[Strings.0416] ;Portugese
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2ptww.cab"


[Strings.0419] ;Russian
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2ruww.cab"


[Strings.041B] ;Slovak
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2skww.cab"



[Strings.040A] ;Spanish
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2esww.cab"


[Strings.041D] ;Swedish
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2svww.cab"


[Strings.041E] ;Thai
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2thww.cab"


[Strings.041F] ;Turkish (Turkce)
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"

LocaleCABFile ="p6i2trww.cab"



[Strings.041A] ;Croatian - Croatia
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"
LocaleCABFile ="p6i2hrww.cab"

[Strings.0402] ;Bulgarian - Bulgaria
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"
LocaleCABFile ="p6i2bgww.cab"

[Strings.0425] ;Estonian - Estonia
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"
LocaleCABFile ="p6i2etww.cab"

[Strings.0421] ;Indonesian - Indonesia
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"
LocaleCABFile ="p6i2idww.cab"

[Strings.043F] ;Kazakh - Kazakhstan
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"
LocaleCABFile ="p6i2kkww.cab"

[Strings.0427] ;Lithuanian - Lithuania
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"
LocaleCABFile ="p6i2ltww.cab"

[Strings.0426] ;Latvian - Latvia
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"
LocaleCABFile ="p6i2lvww.cab"

[Strings.0418] ;Romanian - Romania
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"
LocaleCABFile ="p6i2roww.cab"

[Strings.081A] ;Serbian (Latin) - Serbia
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"
LocaleCABFile ="p6i2srww.cab"

[Strings.0424] ;Slovenian - Slovenia
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"
LocaleCABFile ="p6i2slww.cab"

[Strings.0422] ;Ukrainian - Ukraine
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"
LocaleCABFile ="p6i2ukww.cab"

[Strings.042A] ;Vietnamese - Vietnam
PrinterClassName="Printers"
DiskID="HP LaserJet 4x50 CD"
PRINT_PROCESSOR="HPCPP5r1,hpcpp5r1.DLL"
HP="HP"
HP_Mombi_Driver_Name ="HP LaserJet 4250 PCL 6"
HP_Mombi_Driver_Name_1 ="HP LaserJet 4350 PCL 6"
HP_Mombi_Driver_Name_2 ="HP LaserJet 4240 PCL 6"
LocaleCABFile ="p6i2viww.cab"

Top
#195230 - 2009-08-03 07:32 PM Re: Addprinter using IP address [Re: testerone]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4520
Loc: USA
Just add the two lines, one above, one below, the shell line.

Add this line: ? $printercmd
Leave as is : shell $printercmd
Add this line: ? @serror

Top
#195231 - 2009-08-03 07:40 PM Re: Addprinter using IP address [Re: Allen]
testerone Offline
Fresh Scripter

Registered: 2009-07-31
Posts: 6
Loc: United States
Below is the output with the above mentioned additions.

rundll32 printui.dll,PrintUIEntry /if /b "HP tester" /c "\\E6EHT62" /f "C:\hplj4
250\hpc4x50c.inf" /r "IP_10.61.63.62" /m "HP LaserJet 4250 PCL 6" /z /u
The operation completed successfully.

Top
#195232 - 2009-08-03 07:50 PM Re: Addprinter using IP address [Re: testerone]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4520
Loc: USA
Hmmm... everything looks normal.

You might just do it with the minimal arguments. IE
$=AddPrinter("10.61.63.62","HP LaserJet 4250 PCL 6","C:\hplj4250\hpc4x50c.inf")

I'm headed out, but will think on it. Maybe someone else will have an idea.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 310 anonymous users online.
Newest Members
Praveer, Ollero, rayyo, Foxlicht, DonChild
17742 Registered Users

Generated in 0.04 seconds in which 0.014 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org