rundll32 printui.dll,PrintUIEntry /if /b "NWEmbosser" /f %windir%\inf\ntprint.inf /r "lpt1:" /m "Generic / Text Only" rundll32 printui.dll,PrintUIEntry /Sr /n NWEmbosser /a "%userprofile%\My Documents\Nemeth Worksheets\paper.dat" rundll32 printui.dll,PrintUIEntry /Sr /n NWEmbosser /a "%userprofile%\My Documents\Nemeth Worksheets\port.dat"
This batch file is to run in combination with an installer for one of my programs to creates a generic printer called NWEmbosser. for the first line
second line loads a .dat file that changes the paper length
Third line is .dat file that changes the spooler
This works on windows xp and the only issue was a timing issue on windows xp
windows 7 gives error message 0x0000c can not find exe and it still make the generic printer before error message

New Topic/Question
Reply



MultiQuote







|