а строку выполнение пользователя поставил в имя спойлераА где батник?
RUNDLL32 PRINTUI.DLL,PrintUIEntry /n"HP LaserJet 1018" /k'
@echo off
SetLocal EnableExtensions
set /p "n=Enter the number of copies: "
for /L %%a in (1,1,%n%) do RUNDLL32 PRINTUI.DLL,PrintUIEntry /n"HP LaserJet 1018" /k
Спасибо. Завтра попробую.У этой команды нет параметра для указания кол-ва копий
rundll32 printui.dll,PrintUIEntry
Reference article for the rundll32 printui.dll,PrintUIEntry command, which automates many printer configuration tasks.docs.microsoft.com
Можно запустить эту команду нужное кол-во раз циклом
CMD/BATCH:@echo off SetLocal EnableExtensions set /p "n=Enter the number of copies: " for /L %%a in (1,1,%n%) do RUNDLL32 PRINTUI.DLL,PrintUIEntry /n"HP LaserJet 1018" /k
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?