[comp.sys.ibm.pc] Patches for MSDOS echo off + some other pathes

maartenj@ark.UUCP (05/14/87)

   AUTOMATIC INSTALLATION OF PRINTER FOR DOS PRINT

   The following patch is for PC DOS 3.2

   DEBUG PRINT.COM
   -E 190d<cr>
   xxxx:190d   E8.90  D6.90  02.90<cr>
   -E 191F<cr>
   xxxx:191F   CD.90  21.00<cr>
   -W<cr>
   -Q<cr>

   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<space>	90.5E<cr>
	-E 1E9C
	xxxx:1E9C	90.74<space>	90.51<cr>
	-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.??<cr>

	To change the erase line to a other key :

	-E 1E9B
	xxxx:1E9B	15.??<cr>

	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<cr>
           xxxx:1B2C   01.00<cr>
           -W<cr>
           -Q<cr>

   MSDOS : -E 1ABC<cr>
	   xxxx:1ABC	01.00<cr>
	   -W<cr>
	   -Q<cr>

   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<cr>
   xxxx:115E   03.02<cr>
   -W<cr>
   -Q<cr>
-- 

			Maarten Jan  Huisjes.  (maartenj@cs.vu.nl)
			{seismo|decvax|philabs}!mcvax!vu44!maartenj

maartenj@ark.UUCP (05/14/87)

In article <1013@ark.cs.vu.nl> maartenj@cs.vu.nl (Huisjes Maarten Jan) writes:
>
>	  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.
				   OOPS  ^^^^  sould be CD21
-- 

			Maarten Jan  Huisjes.  (maartenj@cs.vu.nl)
			{seismo|decvax|philabs}!mcvax!vu44!maartenj

jkg@gitpyr.gatech.EDU (Jim Greenlee) (05/15/87)

In article <1013@ark.cs.vu.nl> maartenj@cs.vu.nl (Huisjes Maarten Jan) writes:
>
>   AUTOMATIC INSTALLATION OF PRINTER FOR DOS PRINT

I see this patch periodically and wonder about its usefulness. I have MS-DOS
3.1 running on an AT&T PC 6300 and I can automatically install the printer
from my AUTOEXEC.BAT file by including the following line:

	print/d:prn/q:32 > nul

It sets the default device to PRN and the queue size to 32 (the max, I think).
Is this feature particular to my version of DOS or is it more widely available?
I have never understood the desire by some folks to patch the OS when the 
feature they want is already available (the recent posting of patches for 
default ECHO OFF in DOS 3.30 is a good example).

I suspect that the user manuals are less than crystal clear on some of the 
more obscure features (some are probably undocumented), but any respectable
user's group (or readers of USENET for that matter) can provide people with
the information they want. Why resort to kludgy patches?

						Jim Greenlee
-- 
The Shadow...!{akgua,allegra,amd,hplabs,ihnp4,seismo,ut-ngp}!gatech!gitpyr!jkg

Jryy, abj lbh'ir tbar naq qbar vg! Whfg unq gb xrrc svqqyvat jvgu vg hagvy lbh
oebxr vg, qvqa'g lbh?!