Sign in to follow this  
Followers 0
myspacee

Command line printing

6 posts in this topic

Hello,

in these day i try to find a way to print .pdf files in command line.

Adobe allows print via command line ( /p switch) but have strange behavior.

Adobe program remains open after print, and batches don't go on until you quit it mannually.

So i search another solution, without luck.

If you drag & drop a file over your printer, windows put file in spooler and print.

Is there any way to do this, using Autoit ?

thank you for any info,

m.

Share this post


Link to post
Share on other sites



Hi Yes it cna be done. Have a look at the following links

http://technet.microsoft.com/en-us/library/cc772773(WS.10).aspx

http://technet.microsoft.com/en-us/library/cc782930(WS.10).aspx

What issues are you getting with using the command line in adobe? i know you said it doesnt close afterwards but you can use the proccess close command to sort that.


Drunken Frat-Boy Monkey Garbage

Share this post


Link to post
Share on other sites

thank you for reply,

already know MS resources...

Adobe behavior is very strange :

- if you run from command line [adobe.exe /p /h yourdoc.pdf] pdf is printed fine and command line is disposable

- if you run from batch same command [adobe.exe /p /h yourdoc.pdf] pdf is printed fine but command line is not disposable

(batch wait until you mannually close Adobe)

can't figure out this strange issue.

Very strange...

m.

Share this post


Link to post
Share on other sites

try to use the start-command in your batch file.


*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

try and try again, no luck.

try also windows 'start' command with common switches...

anyone can print .pdf via command line ?

any hint to use Autoit to 'simulate' drag and drop over an installed printer ?

thank you for any info,

m.

Share this post


Link to post
Share on other sites

If you want to close Reader after printing, the best way to print is using DDE.

All what you want and a discussion you can find here:

http://www.autoitscript.com/forum/index.php?showtopic=107961&st=0&p=826314&hl=DDE%20Reinhard&fromsearch=1&#entry826314

Good luck, Reinhard

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  
Followers 0