Сценарий пакетной обработки - запрашивает имена файлов от принтера сервера

Можно попытаться выполнить эту команду на подсказке:

c:\windows\system32\cscript.exe c:\windows\system32\iisapp.vbs
0
задан 30 August 2011 в 16:15
1 ответ

I totally forgot to update this =D.

My solution ended up being querying the local print queue on the workstation.

CSCRIPT "C:\WINDOWS\system32\PRNJOBS.vbs" -l ^| FIND /I "printed file"

Running that queries the local print jobs with their file names, then I search for the file in the output to see if it successfully made it to the print queue. This is the closest that I could come to my solution and it has been working thusfar.

0
ответ дан 24 November 2019 в 12:19

Теги

Похожие вопросы