> -----Original Message-----
> From: Zaphod Beeblebrox [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 12, 2007 1:52 PM
> To: CF-Community
> Subject: Re: Printing multiple files?
> 
> If you can use explorer, you can select all the text files and right
> click and select print.
> 
> 
> On Dec 12, 2007, at 7:21 AM, C. Hatton Humphrey wrote:
> 
> > Does anyone know of a utility that will let me print all of the text
> > files in a directory?  I have an application that we need a complete
> > hardcopy of for legal reasons.  I know that in DOS it would be as
> > simple as copy *.* lpt1: but that doesn't work any more... at least I
> > don't think it does.

The windows command line command is "PRINT" - I would think it should work
just fine.

Also note that (cool trick) if you open the "printers" control panel (so
that you see the icons representing your printers) you can just grab a bunch
of files and drag a bunch of files to it - all the dragged files will be
added to the print queue.

(I just tried this is Vista and it worked a treat, but I'm nearly positive
that it works in XP as well.)

Finally, if you wanted to automate this, it's easy to do in Windows
Scripting Host.  To use Word to print a file you'd do something like this:

var DocToPrint, oWord, oDoc
DocToPrint = "C:\MyFile.Doc"
oWord = CreateObject("Word.Application")
oWordActiveDoc = oWord.Documents.Open("" + DocToPrint)
oWordActiveDoc.PrintOut

A nice example of looping recursively through a file-system (using
JavaScript) is here:

http://www.winscripter.com/WSH/FileIO/75.aspx

It shouldn't be hard to combine the tool to print all files of a specific
type in a folder.

Jim Davis


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:248291
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5

Reply via email to