SoultakerPT Posted December 11, 2009 Share Posted December 11, 2009 Hello and greeting from Portugal to everyone!I'm trying to restore settings to a printer from a *.dat file using the following command:rundll32 printui.dll,PrintUIEntry /Sr /n "printername" /a "datfile.dat"The error I always get is "Operation could not be completed."I believe there is something wrong with my command line but I just can't figure it out!The printer installation works fine using this method.By the way...I'm using Windows 2008 R2.Can someone please help me?Best Regards,Soultaker Link to comment Share on other sites More sharing options...
cluberti Posted December 11, 2009 Share Posted December 11, 2009 What kinds of settings are you trying to set with the .dat file? You might be able to achieve the same with the .vbs print configuration scripts inside the Printing_Admin_Scripts folder in the system32 directory. Link to comment Share on other sites More sharing options...
SoultakerPT Posted December 11, 2009 Author Share Posted December 11, 2009 thx for the quick reply.I didn't know that scripts! But...in this case I believe they cannot help because what I need to change is really driver specific, like...Enable Duplex Unit, etc. Link to comment Share on other sites More sharing options...
maxXPsoft Posted December 11, 2009 Share Posted December 11, 2009 you on Win 7? use PRINTUI.EXE Link to comment Share on other sites More sharing options...
jaclaz Posted December 11, 2009 Share Posted December 11, 2009 (edited) By the way...I'm using Windows 2008 R2.you on Win 7? jaclaz Edited December 11, 2009 by jaclaz Link to comment Share on other sites More sharing options...
maxXPsoft Posted December 11, 2009 Share Posted December 11, 2009 (edited) should be same edit: actually all printui.exe is just a short way to do it instead of rundll Edited December 11, 2009 by maxXPsoft Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now