• batch file set default printer

    Home » Forums » AskWoody support » Windows » Windows 7 » Questions: Windows 7 » batch file set default printer

    Author
    Topic
    #470270

    I am trying to set a default printer for all users using a batch file that uses the printer’s IP address. I had one for WinXp but it does not work in Win7

    My code is not quite right.

    rundll32 printui.dll,PrintUIEntry /y /r “IP_10.11.9.2”

    Any suggestions.

    Thanks.

    Paul

    Viewing 0 reply threads
    Author
    Replies
    • #1234592

      I don’t know the differences in printui.dll between Windows 7 and Windows XP, but I’ve done a lot of XP command line printer setting under the guidance of this site.

      Rob’s only “set default” example is RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /n “printer”. Can you figure out the name for the printer to use in printui.dll? I never could.

      I might suggest you try printui.dll is very fussy about spaces.

    Viewing 0 reply threads
    Reply To: batch file set default printer

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: