home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / virus / 4737 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  2.8 KB

  1. 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
  2. From: padgett@tccslr.dnet.mmc.com (A. Padgett Peterson)
  3. Newsgroups: comp.virus
  4. Subject: Batch file to "fix" CHKDSK.EXE (PC)
  5. Message-ID: <0001.9212181845.AA00632@barnabas.cert.org>
  6. Date: 18 Dec 92 15:41:48 GMT
  7. Sender: virus-l@lehigh.edu
  8. Lines: 65
  9. Approved: news@netnews.cc.lehigh.edu
  10.  
  11. In an idle moment I put together the following batch file to convert
  12. the 04-09-91 version of CHKDSK.EXE from MS-DOS 5.00 to the 11-11-91
  13. model (only a three byte change after all). No guarentees but it seems
  14. to work ok on my PCs. Please follow the instructions exacticalylylyly.
  15.  
  16.                     Merry Christmas, Y'all,
  17.  
  18.                         Padgett
  19.  
  20. - ---------------------cut here ---8<-------------------------------------
  21. @echo off
  22. echo CHKFIX.BAT by Padgett. Patch for early MS-DOS 5.00 CHKDSK.EXE that has
  23. echo   been reported to corrupt disks having over 62,000 allocation units
  24. echo   when the /F switch is used.
  25. echo.
  26. echo This program is FreeWare but no guarentee of any kind is made. Use
  27. echo   is entirely at your own risk. Please read all messages carefully.
  28. echo.
  29. echo If at all possible, obtain the "official" MS-DOS release. This program 
  30. echo   has not been authorized by MicroSoft in any way.
  31. echo.
  32. echo The original CHKDSK.EXE must be in the current directory. On conclusion 
  33. echo   a new program CHKDSK2.EXE will be created with the same changes as 
  34. echo   found in the MS-DOS 5.00 CHKDSK.EXE dated 11-11-91.
  35. echo.
  36. echo This program also expects that DEBUG will run from the current directory.
  37.  
  38. if not exist chkdsk.exe goto endit
  39. if exist chkdsk2.exe del chkdsk2.exe
  40.  
  41. dir chkdsk.exe 
  42. echo.
  43. echo IMPORTANT: use *only* with the 16,200 byte version of CHKDSK.EXE
  44. echo   shipped with the original DOS 5.00 dated 04-09-91 or its exact
  45. echo   duplicate. Ctrl-C will exit.
  46. echo.
  47. pause
  48.  
  49. echo Creating CHKFIX.DAT (will be deleted when done).
  50.  
  51. echo s1l1 ">>> 4F <<< original value in 283F">chkfix.dat
  52. echo e283f>>chkfix.dat
  53. echo 7f>>chkfix.dat
  54. echo s1l1 ">>> 8B <<< original value in 2841">>chkfix.dat
  55. echo e2841>>chkfix.dat
  56. echo 32>>chkfix.dat
  57. echo s1l1 ">>> F9 <<< original value in 2842">>chkfix.dat
  58. echo e2842>>chkfix.dat
  59. echo ed>>chkfix.dat
  60. echo w>>chkfix.dat
  61. echo q>>chkfix.dat
  62.  
  63. copy chkdsk.exe c2.e >nul
  64. echo Creating new CHKDSK2.EXE
  65. debug c2.e <chkfix.dat
  66. echo If the value in brackets ">>>  <<<" is not the same as the current value
  67. echo   two lines below it, do not use the resultant CHKDSK2.EXE. If the
  68. echo   change value (following line) is the same as the current value, you
  69. echo   already have the updated version
  70. ren c2.e chkdsk2.exe
  71. echo.
  72. echo CHKDSK2.EXE created, cleaning up directory
  73. del chkfix.dat >nul
  74. :endit
  75. - --------------------------end CHKFIX.BAT-------------------------------------
  76.