Printing from powershell

  • 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 ?

  • Have you tried the Output-Printer command? I believe that this prints to the default printer using the default settings unless specified otherwise.

    Gaz

    -- Stop your grinnin' and drop your linen...they're everywhere!!!

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply