3
i need to install a fake/dummy printer on windows using a command or a batch file.
I was able to install a dummy printer using the wizard and selecting a NUL port. The problem is that i need to add the dummy printer automatically, so the wizard is not an option.
In my search for a solution i found that it is possible to execute the rundll32 printui.dll PrintUIEntry command with the /il parameter to install a printer using a .inf file.
The problem is creating the .inf file. I read some documentation and tutorials but i still have no idea what this file must contain. Any ideas with this?
Also I'm not sure if the rundll32 printui.dll PrintUIEntry command with a custom .inf file is the right answer, so i'm listening.
This is not an answer to the original question - The problem is creating the .inf file – DavidPostill – 2014-09-30T04:32:41.010
This actually worked, the only thing i had to change was the printer driver because i'm using windows 8 and kept getting error 0x00000705.
rundll32 printui.dll,PrintUIEntry /if /b "NUL Printer" /f "%systemroot%\inf\ntprint.inf" /r "nul:" /m "Microsoft PS Class Driver" /z
. Now i'm wondering if there is a printer driver that already comes in windows xp/7/8 – fsobral – 2014-09-30T17:32:17.173@fsobral Updated. – STTR – 2014-10-01T04:03:30.723