MtfCheck Main Topic | Previous

MtfCheck Examples


mtfcheck -ttape0

This command verifies all the data on the device \\.\tape0 and writes a summary on those data in a file called Report.txt in the current directory.


mtfcheck -ttape0 ûrc:\temp\myreport.txt

This command verifies all the data on the device \\.\tape0 and writes a summary on those data in a file called Myreport.txt in c:\Temp directory. In an automated test environment, the user can run a MTF application to write MTF data on a media, run MtfCheck to create a report file in a specified directory, and use the summary in the report file along with the data from other test tools to ensure that the application wrote valid data.


mtfcheck  -ttape0 -f10 -s3

This command restores tenth file from the third set on the tape \\.\tape0. If the file number or the set number is not known, user can run a normal verify (mtfcheck /ttape0) step and get those numbers from the report file.


mtfcheck -ttape0 -el  -l"My Label"

This command erases a tape, overwriting all its valid bytes with zero, and writes a header with the label "My Label". If -e is used instead of -el, then it writes only a header followed by an END_OF_DATA, as in a soft erase.