|
-
Sep 11th, 2002, 01:01 PM
#1
Thread Starter
Addicted Member
format a flopy disk
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.
-
Sep 12th, 2002, 03:49 PM
#2
Frenzied Member
Turbo C:
Code:
#include <stdlib.h>
int main(){
system("FORMAT A:");
return 0;
}
-
Sep 13th, 2002, 04:39 AM
#3
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|