06-04-2010, 04:18 AM
This works when executed from run:
rundll32 printui.dll,PrintUIEntry /if /b "Non PostScript Printer" /m "HP DeskJet 310" /f %windir%\inf\ntprint.inf /r "lpt1:"
So, this should work but doesn't:
run "rundll32" "printui.dll,PrintUIEntry /if /b ''Non PostScript Printer'' /m ''HP DeskJet 310'' /f %windir%\inf\ntprint.inf /r ''lpt1:''"
Get "Pinters" error message saying, "Operation could not be completed."
Am I missing something? Or is there something wrong.
rundll32 printui.dll,PrintUIEntry /if /b "Non PostScript Printer" /m "HP DeskJet 310" /f %windir%\inf\ntprint.inf /r "lpt1:"
So, this should work but doesn't:
run "rundll32" "printui.dll,PrintUIEntry /if /b ''Non PostScript Printer'' /m ''HP DeskJet 310'' /f %windir%\inf\ntprint.inf /r ''lpt1:''"
Get "Pinters" error message saying, "Operation could not be completed."
Am I missing something? Or is there something wrong.