How can i verify that i have a valid dos floppy in my unix floppy drive and that my write has succeeded. I would normally format the command (e.g. sprintf(cmd, "doscpy %s A:%s, fl, fl) and then do a system command; dosstat = system(cmd); if (dosstat != 0) printf("something is wrong with the floppy or there is no floppy in drive or there is no floppy drive or .......etc". Has anyone got a more elegant way.