Results 1 to 3 of 3

Thread: format a flopy disk

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    179

    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.

  2. #2
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    Turbo C:
    Code:
    #include <stdlib.h>
    int main(){
        system("FORMAT A:");
        return 0; 
    }

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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
  •  



Click Here to Expand Forum to Full Width