for /R "your directory" %f in (*.cfm) --- Find all the files that are *.cfm in this directory and (R)ecursively search subdirs
do start /w --- starts a separate command window and waits for the command to finish notepad.exe /p "%f" --- open notepad with the print flag and send it the filename contained in the %f variable. Sorry for leaving that directory in my example. That was where I was running it from. Actually, come to think of it, since you're supplying the directory, you could run this command from any directory. :) On 3/29/06, Ian Skinner <[EMAIL PROTECTED]> wrote: > > Run this dos command in the root directory you want to print: > > for /R c:\inetpub\wwwroot\tools %f in (*.cfm) do start /w notepad.exe /p > "%f" > > I think I came to a similar, if cruder solution. By re-associating the > .cfm|.cfc|.js extensions to notepade I was able to highlight the files and > select "print" from the action menu. > > With my limited understanding of dos, looks like this command does > something similar on the fly. I will have to remember this for the future, > so I don't have to go around re-associating extensions all the time. > > Could you give me a run down on what all the pieces of this command are? > > > -------------- > Ian Skinner > Web Programmer > BloodSource > www.BloodSource.org > Sacramento, CA > > --------- > | 1 | | > --------- Binary Soduko > | | | > --------- > > "C code. C code run. Run code run. Please!" > - Cynthia Dunning > > Confidentiality Notice: This message including any > attachments is for the sole use of the intended > recipient(s) and may contain confidential and privileged > information. Any unauthorized review, use, disclosure or > distribution is prohibited. If you are not the > intended recipient, please contact the sender and > delete any copies of this message. > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:5:202164 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
