Tom's Hardware > Forum > Windows Vista > Vista General Discussion > Lpr error 64 bit windows

Lpr error 64 bit windows

Forum Windows Vista : Vista General Discussion - Lpr error 64 bit windows

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Using lpr client from the command line has always been available on Windows 32 bit systems. In attempting to use this on a 64 bit system, I get "command not found".
What do I need to do in order to do lpr -S -P from the command line on Windows 64?
Thanks,

Sponsored Links
Register or log in to remove.

Are you trying to add a printer?

------------------------------ Intel core 2 duo e6750 @ 3.3ghz
Asus P5N32-E PLUS SLi nForce
4gb ocz pc 9200
6 satas
Reply to fowang

fowang wrote :

Are you trying to add a printer?



No,

I am just trying to invoke a DOS command (lpr) from a C appl using the system() call.
I found that you have to enable the "LPR Port Monitor".
This via the "Control Panel/Programs and Features/Turn Windows features on or off".
I can now do
lpr -S 10.10.10.10 -P Printer test.fil
from a DOS prompt and it works.
When I try to do the same thing in an application from a system call
system("lpr -S 10.10.10.10 -P Printer test.fil" );
I get
'lpr' is not recognized as an internal or external command

Reply to Anonymous
Tom's Hardware > Forum > Windows Vista > Vista General Discussion > Lpr error 64 bit windows
Go to:

There are 927 identified and unidentified users. To see the list of identified users, Click here.

Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them