PRINTING DIRECTORIES IN DISPLAYWRITE 4 WITH YOUR HEWLETT-PACKARD LASERJET SERIES II Office procedures at my office dictate that secretaries have to keep a printed set of current directories at their desks. So I came up with this little routine to make this task easier (and the output prettier!). The .BAT file below assumes that BASIC is accessible through your DOS PATH statement and that PRINTDIR.BAS exists on your disk. REM PROGRAM NAME: D.BAT REM AUTHOR: CATHY KONAS ECHO OFF CLS BASIC [path]PRINTDIR EXIT [If you have DOS 3.3, replace ECHO OFF/CLS with @ECHO OFF.] Here is the BASIC file you need to create -- name it "PRINTDIR": 10 LPRINT CHR$(27);"E";CHR$(27);"&l0h52F";CHR$(27);"(10U" 20 SYSTEM Explanation of Line 10: the first escape sequence resets the printer; the second does a page eject and sets the text length at 52 lines; the third selects the internal symbol set. [A lowercase "L" follows the ampersand in the second escape sequence; the number one follows the parenthesis in the third escape sequence. It is very important that you type this line exactly as shown.] We run DW4 in APA mode and default to H-P's Legal font cartridges. Using "print screen" to print directories, we manually had to go off line and do a form feed between every two screens; and our printed directories had letters around the borders instead of graphics characters. In other words, it was a tedious job that resulted in ugly printouts. When you are ready to print your directories, at the DisplayWrite 4 Main Menu, select "8. DOS Commands." At DOS prompt, type "D " -- upper or lower case "D" makes no difference. The batch file sends the appropriate escape codes to the printer (through the BASIC file) and returns you to the DW4 Main Menu. Then, use "print screen" to print your directories -- with or without comments. At our office, the DW4 "custom" printer driver is set up to send a reset code when a job is sent to the printer, so there is no need to "clean-up" after using this batch file. If your driver is not set up this way, the easiest thing to do is take your printer off line and press the reset button. NOTE: If the last "page" of your printed directories contains only one screen, you will have to manually eject this page anyway so that's a convenient time to do a manual reset as well. The secretaries at my office are VERY happy with my little routine. Hope this is a help to you, too! And if it is a help, I hope you would show your appreciation by passing on your tricks with DW4 and the HP Series II to: Cathy Konas, 1040 West Granville #609, Chicago, IL 60660-2122, or by leaving a message on this board. Thanks!