Link to home
Start Free TrialLog in
Avatar of mr2fit
mr2fit

asked on

Windows command-line utilty for raw print

Hi,

We moved our character based application to windows 2008 R2. RDP sessions should map the printers of my local clent windows 7. Tjhat works ok. When I print something from Notepad I cab select my default printer.

But off-course when printing from our application the print job appears in de spooler of Windows 2008 but not in de spooler of the Windows 7 client.

Openedge provide a print utily to print text files. Also works ok. But I want to do some Raw printing because of som embedded PCL codes.

I wonder if a command-line utilty exists that could do the raw print job and respect the printermapping...

Best regards,
Martin
Avatar of Ryan Smith
Ryan Smith
Flag of United States of America image

you can try a copy command to lpt1 or port

copy filename.txt lpt1
Avatar of Krzysztof Pytko
I don't know if it resolve your needs but you can try using

print /D:<device> <path_to_file_which_you_want_to_print>
Avatar of mr2fit
mr2fit

ASKER

Hi,
The forwarding to port lpt or 2 was indeed the way I did it. But the lpt1 port doesn't exist anymore. We did it like you suggested. With net use redirecting the output to lpt1.

I also use a procedure http://www.oehive.org/node/499 to do a raw print. On the windows 7 client it works but from Windows 2008 using rdp it  doesn't work.

"print" I tried yesterday. Printjob comes in spooler of windows 2008 but does not arrive at windows 7 client.

Martin


ASKER CERTIFIED SOLUTION
Avatar of Kent Dyer
Kent Dyer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mr2fit

ASKER

Yes it's an HP Laserjet printer. PCL 5, just upgraded the drivers to PCL 6 (on the print server and on the local Windows). But could that be the reason the mapping stops for this kind of output?
Avatar of mr2fit

ASKER

Ok 8 hours later. We solved the problem. The problem was indeed the HP PCL 6 driver.  We installed the Universal HP PCL 5 driver on the print server, Windows 2008 R2 and the Windows clients. Everybody is happy now.. Thanks for putting my nose in the right direction.

This problem is solved, thanks.

Avatar of mr2fit

ASKER

Thanks to this answer i was able to find the solution to my problem. Downgrading th edrivers of the HP Laserjet printer to PCL 5.