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

Printing from powershell

$
0
0
Get-ChildItem -path $Directory -recurse -include *.html | ForEach-Object {Start-Process -FilePath $_.fullname -Verb Print -PassThru | %{sleep 5;$_} | kill }How do I suppress the print dialog ? I need to print a list of 200+ .html files. But the above code keeps prompting before printing each file ?

Viewing all articles
Browse latest Browse all 467

Trending Articles