$folderPath = "C:pathtofolder"
$printCopies = 3
Get-ChildItem -Path $folderPath -Filter *.doc | ForEach-Object {
for ($i = 0; $i -lt $printCopies; $i++) {
Start-Process -FilePath $_.FullName -Verb Print
}
}
# 一定要指定默认打印机
服务器租用托管,机房租用托管,主机租用托管,https://www.e1idc.com