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

Printing to a specific printer

$
0
0
As of now I have this in my Execute Process task Command section to print a list of text files in a directory.Get-ChildItem -path $Directory -recurse -include *.txt | ForEach-Object {Start-Process -FilePath $_.fullname -Verb Print -PassThru | %{sleep 5;$_} | kill }I believe it goes to the locally configured printer.How do I make these files print to a specific network printer.Thanks

Viewing all articles
Browse latest Browse all 467

Trending Articles