Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

script

$
0
0
I have this code which prints files inside the tempprint folder.TargetFolder = "C:\tempprint" Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(TargetFolder) Set colItems = objFolder.Items For Each objItem In colItems objItem.InvokeVerbEx ("Print") NextBut its poping up the print dialog to print every file.How do I suppress the print dialog and print all the files(300 files) in the tempprint directory smoothly.

Viewing all articles
Browse latest Browse all 467

Trending Articles