Jump to content
Sign in to follow this  
myspacee

print .txt file trought command line

Recommended Posts

myspacee

Hello to all,

is possible to script print tool that print text file on given printer?

Wordpad as an option for this : wordpad.exe mickey.txt /P

print file on default printer.

I need tool in this format : script.exe "xerox docuprint 2025s" mickey.txt

other question, other files format can be print via command line ?

if yes, how?

Not find on internet anything ready, maybe can be scripted.

thank you for reading,

m.

Share this post


Link to post
Share on other sites
MrMitchell

Do you know what file types or extensions you need printed? Here is another...

PDF: C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe /t "C:\filename\toprint.pdf" "printername"

"printername" can be a network printer or local printer name. You can also follow the name with "Drivername" or "portname"

That one should work for most newer versions of reader, just need to locate AcroRd32.exe.

By the way you can just Google what you need to print and you can easily find the command line to print it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.