$folderPath = "C:\path\to\folder"
$printCopies = 3
Get-ChildItem -Path $folderPath -Filter *.doc | ForEach-Object {
for ($i = 0; $i -lt $printCopies; $i++) {
Start-Process -FilePath $_.FullName -Verb Print
}
}
# 一定要指定默认打印机
$folderPath = "C:\path\to\folder"
$printCopies = 3
Get-ChildItem -Path $folderPath -Filter *.doc | ForEach-Object {
for ($i = 0; $i -lt $printCopies; $i++) {
Start-Process -FilePath $_.FullName -Verb Print
}
}
# 一定要指定默认打印机
暂无评论
2023-11-14
2023-11-14
2023-11-13
2023-11-13
2023-11-13
2023-11-13
2023-11-13
2023-11-13
2023-11-13
2023-11-13
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23
2023-12-23