"Verify the integrity" of a disk?

OK, so, as part of the final assignment for my “Command Line Scripting” class, we have to create a few batch files to do some stuff. I’ve got most of it, but I’m stuck on one part - we’re supposed to verify the integrity of a floppy disk. I’m guessing this has something to do with the command before it, to format and label the disk, but my notes aren’t telling me what this means. Does it have something to do with the “VERIFY” command?

Before people start on me for asking for homework help, we’ve been instructed to “use all resources at your disposal”, in the words of the assignment. I figured that I wouldn’t be doing my job right if I didn’t use such a wonderful resource for help.

I think you want to look into CHKDSK or SCANDISK, depending on how old the version of MS-DOS you are being tested on is. SCANDISK is to be preferred.

Shiny, that’s what I figured. We’re working with Windows 2K, so it’s Chkdsk.

I learned (the hard way, over several years) that grading is not about knowing the material or solving the problem correctly, but answering the question that has been asked of you. If you are asked to verify the integrity of a disk using a command line script, you would do very well to have your script’s output say something like

“CHKDISK reports disk integrity is xx%”

if you want full credit.

You have a good point, but I don’t think we’ve learned how to change what our script’s output says. I’ll check the book.

CHKDSK isn’t part of DOS, right? It’s part of NT\2000\XP. Sorry to nitpick, but I’m on a world-wide crusade to get people to know that a command-prompt != DOS.