Question Locked

A script to re-select default printer at startup

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Greetings!

In our library, the circulation desk computer (XP Pro SP2) is setup to print receipts on a local printer named "Epson TM-T88III Receipt". It prints on the 80x297 mm roll paper. When staff members need to print something else, they change the default printer to a standard networked printer that uses letter size paper. The problem is that they sometimes forget to set it back to the local one and the next day, when other folks start the computer, it prints default library reminders on the networked printer.

I need to run a script at startup that would set the default printer to "Epson TM-T88III Receipt". How can I do it? I don't have no scripting experience, so please forgive me for a lame question :)

7 replies

by retro77

Its not lame. Glad your here asking for help though. Since you dont have any scripting experience, this is going to be tough. This may just teach you some scripting though. This is how I have evolved my limits scripting is through projects that require it.

It can be done. Check out Kix script and also this link:
http://support.microsoft.com/kb/263226

by churdoo

You can add the following command to a .bat file that you stick in the STARTUP group on the local machine

rundll32 printui.dll,PrintUIEntry /y /n "Epson TM-T88III Receipt"

Here's more info on the printui command:
http://support.microsoft.com/kb/189105

by doe1967

Thanks a lot, churdoo! Adding a bat file with this line to startup worked like a charm - the printer is setup to the default one every time we reboot.

And thanks to retro77 - I'll try to get more familiar with scripting and Kix looks pretty interesting (and not life treatening :)

Thanks again,
Stan

by brenton keegan

If you're interested in scripting (which I find a very useful skill as a network admin), I'd recommend reading up on Object Oriented Programming. It really helps to understand the bigger picture instead of just blindly trying to hack up someone else's code you copied from online.

This discussion is closed to new replies.