kkelly@elbereth.rutgers.edu (Kevin Kelly) (01/14/89)
Does anyone have a patch for IBM DOS 4.0 that makes ECHO OFF the default for batch files? I've used such a patch on DOS 3.{1,2,3} so I would like to maintain the feature as I upgrade. Thanks in advance. -- Kevin Kelly | Netmail: kkelly@elbereth.rutgers.edu undergrad Math/CS | or ...!rutgers!elbereth.rutgers.edu!kkelly Rutgers College | US mail: RPO 1065 / P.O. Box 5063 Phone: (1-201) New Brunswick, NJ | New Brunswick, NJ 08903 745-0114
nather@ut-emx.UUCP (Ed Nather) (01/16/89)
In article <Jan.13.16.00.06.1989.17544@elbereth.rutgers.edu>, kkelly@elbereth.rutgers.edu (Kevin Kelly) writes: > > Does anyone have a patch for IBM DOS 4.0 that makes ECHO OFF the > default for batch files? I've used such a patch on DOS 3.{1,2,3} so I > would like to maintain the feature as I upgrade. I got tired of this hassle, and wrote a program to modify a copy of command.com, setting ECHO OFF as the default. It works on MS-DOS 3.1, 3.2, 3.3 and (I'm told) 4.0 so far. Unless the coding is changed drastically it might even work on future versions. It was written for MS-DOS 3.1 and 3.3; I found it also worked on 3.2, and a friend says it works on 4.0 as well. Syntax: shellfix command.com Be sure you run it on a COPY. It tells you if it fails. ----------------------------------------------------------------------- begin 400 shellfix.exe M35JX X 0 @ T __^0 8 (@ $ ^Q!R:@$ M M M M M M M M M M M "Z2 $NB19R ;0PS2&++@( BQXL ([:HX8 C :$ M (D>@ ")+I@ QP:* /__CL,SP+G_?XOXB]@F@3TX-W4=5U%0L#WRKN,1)HH% M)-__!HH /%EU!/\&B@!865_RKN-C0R8X!772@,V ]]F)#GX @\,'@>/\_]'C MB1Z" !ZX #7-(8D>= ",!G8 N E#A^Z9@'-(1\._Q8L!(L^L@.[ $[^W<" MB_N,VH'#> 1R%+\ $+$$T^M#*^H[[W<)A]\[[W<#Z9$ B]\#VHD>D ")'I0 MH80 *]B.P+1*S2'3YX[2B^?HBPOH<0PSP"Z.!G(!OS@$N7@$*\_SJO\V? #_ M-GH _S9X .AM %#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 ! # 2 "( (@!" "(/__ M_____________________________________P __\ 3 @($!08(" @4 M%043_Q8%%@+_________________!07_____________________#___ O\/ M_____Q/__P("!0\"____$____________________Q/_ I@.F PT M 0*&YU;&PI # Q,C,T-38W.#E!0D-$148 $Q,!$Q03$Q,3 @ 3 P03" 4% M!04%!04%!1,3$Q,3$Q,3$Q,)#A8.!PD3$Q,3%1,3$Q,3$Q,3$PP3$Q,3$Q,3 M$Q,3#PD.#@X'"1,3!A,1"@T3$Q 3"Q,3#!,3$Q,3$Q, 5P17!#L$1 1$!$0$ end -- Ed Nather Astronomy Dept, U of Texas @ Austin
lowey@dvinci.USask.CA (Kevin Lowey) (01/16/89)
In article <Jan.13.16.00.06.1989.17544@elbereth.rutgers.edu>, kkelly@elbereth.rutgers.edu (Kevin Kelly) writes: > Does anyone have a patch for IBM DOS 4.0 that makes ECHO OFF the > default for batch files? I've used such a patch on DOS 3.{1,2,3} so I > would like to maintain the feature as I upgrade. MS-DOS 3.3 introduced a new feature in batch files. Any line starting with "@" in column 1 is not echoed to the screen. So if you have a batch file and you don't want anything echoed, including the starting ECHO OFF, then you can start the batch file with: @ECHO OFF I find this a better solution than patching the operating system. This way everything stays compatible with what people EXPECT MS-DOS to do. -- Kevin Lowey
ray@micomvax.UUCP (Ray Dunn) (01/18/89)
In article <Jan.13.16.00.06.1989.17544@elbereth.rutgers.edu> kkelly@elbereth.rutgers.edu (Kevin Kelly) writes: > >Does anyone have a patch for IBM DOS 4.0 that makes ECHO OFF the >default for batch files? I've used such a patch on DOS 3.{1,2,3} so I >would like to maintain the feature as I upgrade. You dont *need* to patch DOS 4.0. Any command preceded by an @ is not echoed, so "@echo off" at the start of the batch file silently switches off echoing. This is a prefered solution rather than creating a non-standard command.com. -- Ray Dunn. | UUCP: ..!philabs!micomvax!ray Philips Electronics Ltd. | TEL : (514) 744-8200 Ext: 2347 600 Dr Frederik Philips Blvd | FAX : (514) 744-6455 St Laurent. Quebec. H4M 2S9 | TLX : 05-824090
swh@hpsmtc1.HP.COM (Steve Harrold) (01/20/89)
Re: DOS4.0 noecho In my case I need such a patch to COMMAND.COM 4.0 because I would prefer to have a SINGLE VERSION of my BAT files residing on the various PCs they have to run on. These PCs are using various versions of DOS. If these PCs were using something like PC-NFS on a LAN, then the need is more than esthetic; they would all be using the SAME copy of the BAT files. Of lesser importance is this: who wants to visit all his BAT files to do a conversion? I admit that the time to do such a conversion is probably less than zapping COMMAND.COM; but then this neat new SHELLFIX package has just showed up on the net. If you have to support unskilled computer users, each with his/her own PC, the attractiveness of single versioning is enormous. A tool like SHELLFIX makes a "non-standard" COMMAND.COM much less of a problem than it might otherwise be.
nather@ut-emx.UUCP (Ed Nather) (01/23/89)
In article <1639@micomvax.UUCP>, ray@micomvax.UUCP (Ray Dunn) writes: > You don't *need* to patch DOS 4.0. > > Any command preceded by an @ is not echoed, so "@echo off" at the start of > the batch file silently switches off echoing. > > This is a prefered solution rather than creating a non-standard command.com. For new stuff, maybe, but what if you'd like your batch files to work under DOS 3.1, 3.2 and 3.3 as well as Dos 4.0? There are still those who are using the older versions, and there is so little incentive to move from DOS 3.1 I suspect they'll be around for a long time. That's why I wrote a "command.com patcher" program which I posted recently. -- Ed Nather Astronomy Dept, U of Texas @ Austin