Create PDF files from any application with PDFCreator. Best of all, PDFCreator is absolutely free for anyone to use. Create PDF files from nearly every application. And the best: PDFCreator can be how to print every pdf in a folder by everybody for free.
Take control over your PDF files with PDF Architect. With its useful modules, PDF Architect allows you to do so much more than just viewing PDFs. Or were you looking for this? By default, PRINT will send its output to LPT1. On most modern computers, PRINT will be useless, because it needs a printer port like LPT1 or COM1 etc. Wordpad and then open the “Print” dialog. However, most visitors to this site are probably more interested in using the command line instead of the GUI.
On this page I will explain how you can use the file association to print a file from the command line. There is a limitation to this technique, however: for most file types, “Print” opens Windows’ print dialogue for the file, so the user still has to click the “Print” or “OK” button. When you start Windows’ Explorer and click the “View” menu entry, then “Options”, and choose the “File Types” tab, you will see a list of all file types with their associations. If it was just the associations we were after, we could have used ASSOCIATE. Scroll through the list and select “HTML Document”. Depending on your Windows version, click the “Advanced” or “Edit” button. The option in bold face is the one started when you double-click a file of this type.
Select “print” and click the “Edit” button beside or below the “Actions” list. This will open a dialogue titled “Edit action for type: HTML Document”. It is the value of the field “Application used to perform action” that we are after. Since the directory for the DLL is where RUNDLL32. This command can be used to print HTML files from a batch file.
Do not expect these modifications to be easy reading, though. How about PDF files, for example? Can a batch file for printing PDF files be made generic enough to cope with different installations and versions of Adobe Acrobat Reader? You may have guessed: I wouldn’t have asked if the answer had been NO. There is one restriction, though: this batch file will only work when PDF files’ default association is any Acrobat Reader version.
This means that if you have Acrobat Writer installed on your PC, this batch file will fail. 20 a message will be displayed to explain why it fails. Thanks to Chuck Hicks for this addition. Thanks to Michael Lintner for his modification to enable long file names.
ECHO No print command seems to be associated with . PDF files on this computer. Now we need to find a tool to check for processes. NT 4 and 2000 we’ll need to find a non-native tool. T switch terminates Acrobat Reader after printing.