hi
i want to format a flopy disk using turbo c++ or in c,
is that possible, if yes then can some one help me with the code please.
Printable View
hi
i want to format a flopy disk using turbo c++ or in c,
is that possible, if yes then can some one help me with the code please.
Turbo C:
Code:#include <stdlib.h>
int main(){
system("FORMAT A:");
return 0;
}
better yet, as it doesn't ask the user (or maybe not better):
system("echo y\n\nn | format a:");
should automatically answer yes when asked if it should really format, press any key when asked for inserting a disk, assign no label and not format any more disks.
But I can't guarantee that it works. Also you must mind that a German windows will require the user to enter j, not y.