home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / fm2_267.zip / fatopt.tmp < prev    next >
Text File  |  1995-03-20  |  669b  |  29 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. FATOPT.EXE %1
  22.  
  23. rem
  24. rem if there's an error or user abort, pause the display so the user
  25. rem can see what's happened.
  26. rem
  27.  
  28. IF ERRORLEVEL == 1 PAUSE
  29.