Help - Search - Members - Calendar
Full Version: HP Jet Admin
The CD Forum > Bart's PE Builder > Plugins
Dangerous
whistling.gif Any one got or know of a plugin for jet admin on bart pe ?
mbarnes
Hi Dangerous

I searched but could not find the reference here but since it was posted in 2004 it may not be searchable anymore

here is an example of a batch/cmd file to create a VBS script which starts the jet direct port on your running BartPE
you probably also need a collection of plugins:-
Joshua's printer plugin or similar,
windows scripting host WSH plugin,
Paragliders hwpnp
Sherpya's post processing plugin + updated version of infcachebuild
working network driver & connection
and details of IP address of printer it goes direct to Printer not via Print Server

a Laser Jet III or 5P printer driver should work for many modern laser printers


regards
Mike Barnes


jetdirect.cmd

CODE
REM HPLJ2100 an TCP/IP-Port
@ECHO OFF
rem author biene2099 16 Oct 2004
rem IP address updated June 2004
CLS

rem remmed out as requires modifications to other plugins to work MBarnes
rem echo check Printers installed
rem if not exist %ramdrv%\SPOOLflag call x:\Programs\printers\InstallPrinterIII.cmd
rem echo Print Spooler OK
rem echo check WSH started
rem if not exist %ramdrv%\WSHflag call %WinDir%\System32\startWSH.cmd
rem echo WSH ok

color 0e
REM ***********************************************************************
TITLE [HP-LJ-4 9050dn a TCP/IP-Port Installer (10.21.202.54)]
REM ***********************************************************************

:: die DLL aus dem Recourcekit registrieren
START /wait regsvr32 /s %WINDIR%\System32\Prnadmin.dll

:: Eine VBS Datei erstellen die den Printerport erzeugt
ECHO > %ramdrv%\printer54.vbs Set WshShell = Wscript.CreateObject("Wscript.Shell")
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs const kTcpRaw = 1
ECHO >> %ramdrv%\printer54.vbs const kTcpLPr = 2
ECHO >> %ramdrv%\printer54.vbs const kLocal = 3
ECHO >> %ramdrv%\printer54.vbs const kLocalDownLevel = 4
ECHO >> %ramdrv%\printer54.vbs const kLprMon = 5
ECHO >> %ramdrv%\printer54.vbs const kHPdlc = 7
ECHO >> %ramdrv%\printer54.vbs const kUnknown = 8
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs const kStdTCPIP = "Standard TCP/IP Port"
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs dim oPort
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs dim oMaster
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs set oPort = CreateObject("Port.Port.1")
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs set oMaster = CreateObject("PrintMaster.PrintMaster.1")
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs On Error Resume Next
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs oPort.ServerName = ""

rem default name [HPLJ2100 Port] ok ?
ECHO >> %ramdrv%\printer54.vbs oPort.PortName = "HPLJ-9050dn Port"

ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs oMaster.PortDel oPort
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs On Error GoTo 0
ECHO.>> %ramdrv%\printer54.vbs
rem user specific
ECHO >> %ramdrv%\printer54.vbs oPort.PortName = "HPLJ-9050dn Port"
ECHO >> %ramdrv%\printer54.vbs oPort.SNMPDeviceIndex = "1"
ECHO >> %ramdrv%\printer54.vbs oPort.CommunityName = "public"


rem ECHO >> %ramdrv%\printer54.vbs oPort.HostAddress = "abc.def.ghi.jkl"
rem must set up port

ECHO >> %ramdrv%\printer54.vbs oPort.HostAddress = "10.21.202.54"


ECHO >> %ramdrv%\printer54.vbs oPort.QueueName = 9100
ECHO >> %ramdrv%\printer54.vbs oPort.PortType = kTcpRaw
ECHO.>> %ramdrv%\printer54.vbs
ECHO >> %ramdrv%\printer54.vbs oMaster.PortAdd oPort
ECHO.>> %ramdrv%\printer54.vbs

REM mit dem VBS Scrpit den Printerport erstellen
echo.
echo Now Starting TCP/IP Port ....

%ramdrv%
cd \
start printer54.vbs

rem start /wait printer54.vbs

rem DEL /s /f /q %ramdrv%\Printer54.vbs >NUL 2>&1

echo.
echo Jet Direct Printer Port for HP LJ 9050dn at (10.21.202.54) Ready ....
rem - Sleep for 00:00:05

echo.
echo.
pause

EXIT
Dangerous
Cheers Mike that might point me in the right direction..

What I am looking for is Jet admin to "find" the unknown ip address on the printer like the full "installed" jet admin does ,but this will certainly help thanks again

Dangerous
dustingold09
BartPE uses XML files to handle its menu system. The primary plugin menu for a default install of BartPE is located at: C:\pebuilder\plugin\nu2menu. Nu2Menu has multiple files but the primary one to look at is: nu2menu.xml. There are other menu systems that can be used if you download them.
Ed_P
The above posting makes no sense in this thread and the sig link makes it look to be SPAM. Tell me I'm wrong.
jaclaz
QUOTE (Ed_P @ Sep 14 2009, 05:33 AM) *
The above posting makes no sense in this thread and the sig link makes it look to be SPAM. Tell me I'm wrong.

You are right. (unfortunately sad.gif, I simply love it when you are wrong wink.gif harhar.gif )

See his second post:
http://www.911cd.net/forums//index.php?sho...=23103&st=4

ph34r.gif

jaclaz
Ed_P
What's really annoying, Brother makes decent products, they don't need their reputation soiled with a SPAM label. I assume our poster is an over zealous new employee.
jaclaz
QUOTE (Ed_P @ Sep 15 2009, 06:05 PM) *
I assume our poster is an over zealous new employee.


I assume him to be an over-or-under-zealous whatever from India. w00t.gif

I don't think there is any "real" connections with the good guys at the actual printer manufacturer's, or with the ones that run the Canada independent subsidiary. hmm.gif

jaclaz
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.