home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 September / PCO_0998.ISO / filesbbs / os2 / fm2_300.arj / FM2_300.ZIP / fatopt.tmp < prev    next >
Encoding:
Text File  |  1998-07-04  |  857 b   |  35 lines

  1. @echo off
  2. rem
  3. rem first run chkdsk/f to make sure the drive's clean
  4. rem
  5.  
  6. CHKDSK %1 /F
  7.  
  8. rem
  9. rem suggestions:
  10. rem
  11. rem -i for idle priority (not with DOS programs running)
  12. rem -o for "optimize without asking"
  13. rem -p in low memory situations
  14. rem
  15. rem since fatopt returns the percentage of fragmented files when run in
  16. rem report-only mode (-r), you could set this command file up to only
  17. rem run to optimize when a report run indicated that fragmentation was
  18. rem above a certain percentage...
  19. rem
  20.  
  21. rem
  22. rem This notice is just so users know what's going on and can change it...
  23. rem
  24. ECHO This is FATOPT.CMD, which you can customize to use any FAT optimizing
  25. ECHO program you like.
  26.  
  27. FATOPT.EXE %1
  28.  
  29. rem
  30. rem if there's an error or user abort, pause the display so the user
  31. rem can see what's happened.
  32. rem
  33.  
  34. IF ERRORLEVEL == 1 PAUSE
  35.