FOR /f "delims=" %%G in (c:\Scripts\CompOnly.csv) DO wmic.exe /node:%%G /username:"Domain\User" /password:"TopSecret" printer where "Name='Myprinter'" set Direct=1
Timeout 5
ASKER
ASKER
Batch files are text files containing a script of commands that are executed by the command interpreter on DOS, OS/2 and Windows systems. Most commonly, they are used to perform a series of functions that are repeated -- copying a set of files created daily with one step, for example.
TRUSTED BY
Try something like this. Replace EPSON in between the two * with your printer name.
Open in new window