Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!seismo!mcvax!botter!ark!maartenj From: maartenj@ark.UUCP Newsgroups: comp.sys.ibm.pc Subject: Patches for MSDOS echo off + some other pathes (Dos 3.2) Message-ID: <1013@ark.cs.vu.nl> Date: Wed, 13-May-87 19:08:49 EDT Article-I.D.: ark.1013 Posted: Wed May 13 19:08:49 1987 Date-Received: Sat, 16-May-87 10:06:44 EDT Reply-To: maartenj@cs.vu.nl (Huisjes Maarten Jan) Distribution: world Organization: VU Informatica, Amsterdam Lines: 132 AUTOMATIC INSTALLATION OF PRINTER FOR DOS PRINT The following patch is for PC DOS 3.2 DEBUG PRINT.COM -E 190d xxxx:190d E8.90 D6.90 02.90 -E 191F xxxx:191F CD.90 21.00 -W -Q If the printer port is LPT2 then the following address must ALSO be modified as follows: -E 11c2 4 "LPT2" MSDOS: MSDOS 3.2 doesn't have PRINTER.COM but PRINTER.EXE So the best way of finding the right address is searching for the following bytes using norton or any other program that allows you to display, change and search a HEX file. search for 0xE8D602 change these three bytes in 0x909090 and 18 bytes (12 HEX) after that address there should be 0xCD21 change that in 0x9090. Fist search the whole file for any occurence of E8D602 if there are more then one look for the CD12 (in assembly INT 21) 18 bytes after each occurence. ********************************************************* ALLOW ^W FOR ERASE WORD AND ^U FOR ERASE LINE For some version of MS/PCDOS this patch will not be necessary. To find out just try out ^W and ^U if they work don't apply the following patch (although you might want to change the ^W and ^U to some other keys in which case you should read on). **** WARNING **** The following patch is made to the heart of the system!! Be very careful. if you think you made a mistake exit before writing the changes to diskette. - The safest way of of applying this patch is by formatting a empty floppy using the command `FORMAT a: /s'. - Second you have to change the attribute of the system/hidden/read- only file IBMDOS.COM to `normal'. You can do this with the PD program CHMOD, norton's FA or any other program that allows you to change ALL the attribute of a file. You cannot use the DOS utility ATTRIB. - Apply the following patch. - Reset the attributes of IBMDOS.COM to system/hidden/readonly. - Reboot your pc from the patched floppy in drive a: - See if the patch worked and if so you can use the SYS command to port the patched systemfiles to your hard disk or other diskettes. DO NOT PATCH THE IBMDOS.COM FILE ON YOUR HARD DISK DIRECTLY SINCE DEBUG WILL NOT WRITE THE FILE BACK TO THE SAME PLACE ON THE HARD DISK. Some versions of Dos 3.2 have these options disabled for some reason. To enable them: Dos 3.2 (PC and MS DOS) : DEBUG ibmdos.com -U 1E96 xxxx:1E96 3C17 CMP AL,17 xxxx:1E98 90 NOP xxxx:1E99 90 NOP xxxx:1E9A 3C15 CMP AL,15 xxxx:1E9C 90 NOP xxxx:1E9D 90 NOP If you don't see something similar don't apply the following patch -E 1E98 xxxx:1E98 90.74 90.5E -E 1E9C xxxx:1E9C 90.74 90.51 -W -Q If you want the erase line and erase word functions set to something other then ^U and ^W (I myself prefer ^X and ^W) use the following patch: MS/PCDOS 3.2 : To change the erase word to a other key : -E 1E97 xxxx:1E97 17.?? To change the erase line to a other key : -E 1E9B xxxx:1E9B 15.?? Instead of the ?? you fill in the HEXIDECIMAL ascii value of the key you want it to be. (^A = 01H, ^Z = 1AH, @ = 40H, etc). **************************************************************************** ECHO OFF DEBUG COMMAND.COM PCDOS : -E 1B2C xxxx:1B2C 01.00 -W -Q MSDOS : -E 1ABC xxxx:1ABC 01.00 -W -Q The default for AUTOEXEC.BAT files will still be ECHO ON. to make ECHO of the default (PC & MS DOS 3.2) : DEBUG COMMAND.COM -E 115E xxxx:115E 03.02 -W -Q -- Maarten Jan Huisjes. (maartenj@cs.vu.nl) {seismo|decvax|philabs}!mcvax!vu44!maartenj