Changing printer preferences in Windows programmatically
- by Andrew Alexander
I've written a script that installs several printers for a new user.
I want to change the settings on some of these so that they can print on both sides of the page.
I BELIEVE this involves modifying an attribute with printui, however it might need VB script or possibly another .NET language (I'd either use VB, C# or IronPython).
I can add a comment to a given printer, but how do I select preferences and modify them?
Pseudocode would look like this:
printui.exe /n printername /??? [how to change quality desired]
OR calls to the relevant Windows API.