Last change
on this file since 1036 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
|
Rev | Line | |
---|
[2] | 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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.