This is a long detailed process, so if you have any questions, do not hesitate to ask, ok?
There are many different issues that you have to deal with to get a scheduled task to print to a USB printer. There may be different ways to do it, but the portion that I have figured out was to use MS-DOS. As most people realize, DOS does not like USB printers, but that is ok. Configuring DOS to recognize a USB printer
In order to get DOS to print to a USB printer, you have to share your printer with a LPT port. Chances are, you do not have anything hooked to one, because it is used for older printers. To get your printer to be shared with both USB and a LPT port, do the following steps:
- Open up your Printer preferences: START -> Control Panel -> double-click Printers and faxes -> right-click on your printer, and chose preferences.
- Click the Sharing tab
- Click Share this printer, and in the share name type a short name (ex: C64), and click apply
- Exit your printer properties window
- Open System Properties by double-click System on the Control Panel window
- Click the Computer Name tab, and write down the full computer name (to be used later).
- Open a DOS window by clicking START -> run -> type cmd in the open box, and click OK
- Type the code below, where full computer name, is your full computer name and C64 is what you called your printer
- You will see a confirmation dialog saying 'The command has completed successfully'
- Close the DOS window
net use LPT1 \\full computer name\C64 /persistent:yes
Yes, it is alot of information so far, but you have made it through the first part. You know what they say about a long journey-they all start with the first step
Now that you have configured DOS to use your USB printer, it is time for DOS to do something with it. For now, I would like for you to do a test print. Right-click anywhere on your desktop, and select new -> text document. Enter the text in the code below and click File -> Save as
. Change the location to Desktop, save as type to all files, and in the file name field, type print.bat and finally click save. You will see that the icon kinda looks like a gear in a window
. Put some paper in, and double click the file, to see that it has printed to your printer. You do not have to finish the print job, just so long as it prints something.
dir c: /s>LPT1
Now for the really, really fun part. As you may have guessed, DOS does not like any files that requires
Windows to run, such as IE. The reason is because DOS is text based, and nearly everying in Windows is graphic based. As much as I would hate to leave you with this, I have not figured out a way to combine the Scheduled Task of Windows, with the (now) DOS-based redirected USB -> LPT port. I am working on it though. I was hoping that I could go the direction as using Scheduled task to open up IE-to a specific webpage, and then a DOS batch program to print what is on the screen. So far, I have not been successful, unless someone knows the coding to get DOS to Print screen...?
We are all curious like a cat. We wonder, we ask, we learn.
Please post back when a suggestion works, so that others may learn.