home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.centerline.com!noc.near.net!hri.com!spool.mu.edu!agate!usenet.ins.cwru.edu!cert!netnews.upenn.edu!netnews.cc.lehigh.edu!news
- From: padgett@tccslr.dnet.mmc.com (A. Padgett Peterson)
- Newsgroups: comp.virus
- Subject: Batch file to "fix" CHKDSK.EXE (PC)
- Message-ID: <0001.9212181845.AA00632@barnabas.cert.org>
- Date: 18 Dec 92 15:41:48 GMT
- Sender: virus-l@lehigh.edu
- Lines: 65
- Approved: news@netnews.cc.lehigh.edu
-
- In an idle moment I put together the following batch file to convert
- the 04-09-91 version of CHKDSK.EXE from MS-DOS 5.00 to the 11-11-91
- model (only a three byte change after all). No guarentees but it seems
- to work ok on my PCs. Please follow the instructions exacticalylylyly.
-
- Merry Christmas, Y'all,
-
- Padgett
-
- - ---------------------cut here ---8<-------------------------------------
- @echo off
- echo CHKFIX.BAT by Padgett. Patch for early MS-DOS 5.00 CHKDSK.EXE that has
- echo been reported to corrupt disks having over 62,000 allocation units
- echo when the /F switch is used.
- echo.
- echo This program is FreeWare but no guarentee of any kind is made. Use
- echo is entirely at your own risk. Please read all messages carefully.
- echo.
- echo If at all possible, obtain the "official" MS-DOS release. This program
- echo has not been authorized by MicroSoft in any way.
- echo.
- echo The original CHKDSK.EXE must be in the current directory. On conclusion
- echo a new program CHKDSK2.EXE will be created with the same changes as
- echo found in the MS-DOS 5.00 CHKDSK.EXE dated 11-11-91.
- echo.
- echo This program also expects that DEBUG will run from the current directory.
-
- if not exist chkdsk.exe goto endit
- if exist chkdsk2.exe del chkdsk2.exe
-
- dir chkdsk.exe
- echo.
- echo IMPORTANT: use *only* with the 16,200 byte version of CHKDSK.EXE
- echo shipped with the original DOS 5.00 dated 04-09-91 or its exact
- echo duplicate. Ctrl-C will exit.
- echo.
- pause
-
- echo Creating CHKFIX.DAT (will be deleted when done).
-
- echo s1l1 ">>> 4F <<< original value in 283F">chkfix.dat
- echo e283f>>chkfix.dat
- echo 7f>>chkfix.dat
- echo s1l1 ">>> 8B <<< original value in 2841">>chkfix.dat
- echo e2841>>chkfix.dat
- echo 32>>chkfix.dat
- echo s1l1 ">>> F9 <<< original value in 2842">>chkfix.dat
- echo e2842>>chkfix.dat
- echo ed>>chkfix.dat
- echo w>>chkfix.dat
- echo q>>chkfix.dat
-
- copy chkdsk.exe c2.e >nul
- echo Creating new CHKDSK2.EXE
- debug c2.e <chkfix.dat
- echo If the value in brackets ">>> <<<" is not the same as the current value
- echo two lines below it, do not use the resultant CHKDSK2.EXE. If the
- echo change value (following line) is the same as the current value, you
- echo already have the updated version
- ren c2.e chkdsk2.exe
- echo.
- echo CHKDSK2.EXE created, cleaning up directory
- del chkfix.dat >nul
- :endit
- - --------------------------end CHKFIX.BAT-------------------------------------
-