home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR2
/
DS_TEST.ZIP
/
CORRUPT.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-09-20
|
2KB
|
42 lines
@echo off
echo ==========================================================
echo This batch file will take a newly formatted DoubleSpace
echo drive and test it. It will likely damage the drive
echo so don't run it on your main DoubleSpace drive. Built a
echo small test drive first. First it creates a TEST directory
echo and fills it with files:
pause
bust
echo ==========================================================
echo If you received a critical error during file creation,
echo then allocation units were lost on the drive. CHKDSK
echo reports on the status of your disk:
pause
chkdsk
echo ==========================================================
echo Now copy some of those files in the TEST directory to the
echo the root directory. COPY /B is used since the files
echo contain binary data; /V request verification of the written
echo data:
pause
echo COPY /B /V ? ..
copy /b /v ? ..
cd ..
echo ==========================================================
echo Even though COPY probably did not report any errors, COPY
echo may have written corrupted files. FC compares two files.
echo If the files are the same FC says "No differences Encountered".
Echo If you don't see that its because the COPY with verify failed!
pause
echo FC ? test\?
rem the find below filters out all the detail on files that don't compare
fc /b ? test\? | find /v "0"
pause
echo ==========================================================
echo If there are "No differences Encountered" after each FC your
echo system is working fine. If not your data is at risk!
echo ==========================================================