Re: Win32 error code 2 when using prndrvr.vbs with latest HP Print Drivers



error 2 is File Not Found.

Are all the files in c:\test\3800 or in subdirectories under this?

Did you attempt using both driver names with the same failure?

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

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

<ejmichaud@xxxxxxxxxxx> wrote in message
news:1161961080.412615.210590@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have been using prndrvr.vbs and prnmgr.vbs to automate the
installation of any one of the hundreds of printers in our
organization. However recently I have been unable to use prndrvr.vbs
to install new HP print drivers.

Here is a typical command line that works fine to add a driver:
cscript c:\test\prndrvr.vbs -a -h "C:\Test\4100" -i
c:\test\4100\hp4100p5.inf -m "HP LaserJet 4100 PCL 5e"

HP's new drivers have a different .inf format and when I use the same
command line to install those new format drivers, I receive an error.
Here is a typical command line that would throw an error:
cscript c:\test\prndrvr.vbs -a -h "C:\Test\3800" -i
c:\test\3800\hp3800b.inf -m "HP Color LaserJet 3800 PCL 6"

The error I receive is as follows:
Unable to add printer driver HP LaserJet 3800 PCL 6 Win32 error code 2

With debug turned on:
Debug: In function ParseCommandLine
Debug: In function AddDriver
Unable to add printer driver HP Color LaserJet 3800 PCL 6 Win32 error
code 2

What do I mean by new format driver? Well, without posting the whole
driver .inf here is an example of a driver's .inf [Strings] section
that works fine:
[Strings]
Printer1="HP LaserJet 4100 PCL 5e"
DiskID1="HP LaserJet 4100 PCL 5e Disk 1"
DiskID2="HP LaserJet 4100 PCL 5e Disk 2"
DiskID3="HP LaserJet 4100 PCL 5e Disk 3"
HPDC_MONITOR="HP Master Monitor,HPBMMON.DLL"

Here is an example of a driver's .inf [Strings] section that doesn't
work:
[Strings]
PrinterClassName="Printers"
DiskID="HP Color LaserJet 3800 PCL Printer Driver Disk"
PRINT_PROCESSOR="HPZPP41w,hpzpp41w.DLL"
HP="HP"
HP_Mombi_Driver_Name="HP Color LaserJet 3800 PCL 6"
HP_Wizard_Driver_Name="HP Color LaserJet 3800 PCL6"

Any HP driver that has a driver who's .inf [Strings] section looks
similar to the first posting works fine. Any HP driver that has a
driver who's .inf [Strings] section looks similar to the second posting
failes with the "Win32 error code 2" error.

Anyone have any ideas? Anyone else run into this problem?

Eric



.



Relevant Pages

  • Win32 error code 2 when using prndrvr.vbs with latest HP Print Drivers
    ... HP's new drivers have a different .inf format and when I use the same ... command line to install those new format drivers, ... Unable to add printer driver HP Color LaserJet 3800 PCL 6 Win32 error ... driver .inf here is an example of a driver's .inf [Strings] section ...
    (microsoft.public.windowsxp.print_fax)
  • PCMCIA product id strings -> hashes generation at compilation time? [Was: Re: [patch 14/38] pcmci
    ... Most pcmcia devices are matched to drivers using "product ID strings" ... embedded in the devices' Card Information Structures, ... Only the hashes are stored in "modules.alias", ... While having to determine the crc32 hashes is a hassle to device driver ...
    (Linux-Kernel)
  • Re: updateRow() Fails
    ... This driver does not implement prepared statements in a compliant manner. ... Instead of using parameterized operations where there is no conversion of ... strings, the driver converts all parameters to string values for use in text ...
    (microsoft.public.sqlserver.jdbcdriver)
  • RE: Question on drivers installation during FBA and fbreseal
    ... C:\WINDOWS\inf\oem3.inf, using [STRINGS] instead. ... Effective driver date: 03/04/2003. ... #-166 Device install function: DIF_SELECTBESTCOMPATDRV. ... Does the first bootup after fbreseal reinstall the ...
    (microsoft.public.windowsxp.embedded)
  • Re: how to display messages during boot time
    ... the disk checker that occasionally kicks in as XP boots uses ... this fucntion to print strings to the screen. ... display strings if the video driver hasn't taken over yet, ...
    (microsoft.public.development.device.drivers)