From: OldDog on
Hi,

I have found several examples of scripts that use this:
"objItem.InvokeVerbEx("Print")" to print text files.
However, when I use it, I get a dialog box for every single file
printed with the date/time and an OK button.


This is really anoying if you have hundreds of files to Print. I have
seen the issue brought up before, but no answer to the question. I
did
try to send it to NUL objItem.InvokeVerbEx("Print") > NULL but that
did nothing at all.


Is there a way to print all the text files in a directory with out
having to click OK 100 times?


My Code:


TargetFolder = "C:\Temp"
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(TargetFolder)
Set colItems = objFolder.Items
For Each objItem in colItems
objItem.InvokeVerbEx("Print")
Next


OLDDOG