Question Locked

Printing from a CMD (DOS)-box to a HP 1020 printer

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

I am trying to print a TXT file from a CMD-box to a HP 1020. It works fine with our HP 3330,3380,845C printers, even the epson DX3800 has no problemss, Except the 1020 printers don?t do a thing.
The code is used in an ASP page, and creates a TXT on the server, then I execute a command on the server to print it locally (user)
I use the next command:

Executor.Application = "cmd /c PRINT /D:\\user1\\hp1020 C:\\text\\TEST.txt "

If you go to the properties of the printers, it seems to stay there.

Is there a way to print TXT files to a HP 1020 printer using that command?

Many thx,

David

8 replies

by vinnyd

The HP 1020 is a USB printer.

I have to assume the other printers you mentioned are parallel and that would be why they worked.

The only way I know of to print to a usb printer from a DOS program is to have it shared and capture the LPT1 port to the shared printer which is on another computer.

DOS does not know what a usb printer is unless you have a special driver for printing from DOS programs.

by david_2007

That is just the strange thing. the other printers are all USB ones too. Th DX3800 is conected to my Pc, All the Zebra (TLP 2844) are also USB.

About the LPT1 stuff.
I need to use NET USE LPT1 \\namePC\nameprinter ?

If so, can I use LPT4 or LPT5? Or Must it be LPt1? As our server has already a LPT1 for an Epson FX890 Matrix printer.

Thx
David

by brant.keith

Did you every get a resolution to your issue? I have the same printer model and I'm unsuccessful at printing from DOS apps. I've shared the printer and I'm capturing it to LPT3. Thanks!

This discussion is closed to new replies.