home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1996 February
/
PCWK0296.iso
/
sharewar
/
os2
/
narzedzi
/
fm2
/
fatopt.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-03-20
|
669b
|
29 lines
@echo off
rem
rem first run chkdsk/f to make sure the drive's clean
rem
CHKDSK %1 /F
rem
rem suggestions:
rem
rem -i for idle priority (not with DOS programs running)
rem -o for "optimize without asking"
rem -p in low memory situations
rem
rem since fatopt returns the percentage of fragmented files when run in
rem report-only mode (-r), you could set this command file up to only
rem run to optimize when a report run indicated that fragmentation was
rem above a certain percentage...
rem
FATOPT.EXE %1
rem
rem if there's an error or user abort, pause the display so the user
rem can see what's happened.
rem
IF ERRORLEVEL == 1 PAUSE