How to send .prn file directly to USB local printer?

Page 1 of 2 12 LastLast

  1. Posts : 981
    W10 Pro v21H2
       #1

    How to send .prn file directly to USB local printer?


    I may be in the wrong department here, so feel free to move if needed: I am trying to use the LaserJet Cleaning Utility made for my HP LaserJet 5P (I know, it is an antique, but it still works!) connected via USB A to Centronics Parallel Printer Adapter. This utility consists mainly of two .PRN files, one of which you print about 3 copies, then turn the pages over so that the printed sides get re-fused and clean off the fuser rollers as they exit (they also use a LOT of toner, so that the HP guys make a lot of money!)

    Problems are, the executable does not run in any compatibility mode for W10, the batch file doesn't work either.
    Trying to simply send the file directly to printer has failed so far thusly:

    copy hppass1.prn /B prn
    copy hppass1.prn /B USB001
    copy hppass1.prn /b \\computername\printername

    Now I know I have forgotten a lot of DOS and other command line syntax, but can anyone correct me here? I have even tried drag/drop the file onto the printer icon in Printers and Devices, and onto a shortcut to the same printer copied to desktop. No joy. What have I missed?
      My Computers


  2. Posts : 8,108
    windows 10
       #2

    COPY /B C:\FILENAME.PRN \\TP123\LaserJet
      My Computer


  3. Posts : 226
    Many
       #3

    If the printer is the default you can do start /min notepad /p <path\to\file

    or use the net use command to share the printer to an LPT device and then send the print job to that LPT device with the print /d:LPT1 path\to\file
      My Computer


  4. Posts : 981
    W10 Pro v21H2
    Thread Starter
       #4

    Just to be sure I am on the right track:

    Attachment 223125

    Attachment 223126


    Using these names, I get the following:

    Attachment 223124


    Am I missing something obvious?
    Does the USB/Parallel Printer adapter cable make this a problem?
    Does file and printer sharing have to be enabled to copy to a local printer?
      My Computers


  5. Posts : 226
    Many
       #5

    Should be the printer share name not the friendly name you would also need to share the printer
      My Computer


  6. Posts : 981
    W10 Pro v21H2
    Thread Starter
       #6

    Ah! Many thanks!
      My Computers


  7. Posts : 981
    W10 Pro v21H2
    Thread Starter
       #7

    None of the syntax or commands given so far have worked on W10 21H2.

    Still trying to get this to work, if anyone has any ideas...
      My Computers


  8. Posts : 15,485
    Windows10
       #8

    Maybe it is time to upgrade printer?
      My Computer


  9. Posts : 981
    W10 Pro v21H2
    Thread Starter
       #9

    Yeah, I know the LJ5P is old, but it is built like a tank - as long as you can get toner cartridges for it, it just keeps working.

    I don't see why windows won't just let me use an admin command line to copy the file to the printer, but it always either complains about syntax, can't find file, can't find path, can't find its a** with both hands and a flashlight!

    Windows...

    signed ,

    old fart.
      My Computers


  10. Posts : 2,800
    Windows 7 Pro
       #10

    Hi,

    You need to share the printer first.

    Then map a LPT port to the shared printer.
    Code:
    net use lpt1: \\ComputerName\PrinterShareName /persistent:yes
    Then copy the file to the LPT port
    Code:
    Copy /B test.txt LPT1
    This works with most USB printers.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:54.
Find Us




Windows 10 Forums