source: branches/ticket_150/fatopt.tmp@ 869

Last change on this file since 869 was 2, checked in by root, 23 years ago

Initial revision

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