Does any one know how to write a program in turbo c++ to format a floppy.
Does any one know how to write a program in turbo c++ to format a floppy.
Well I geuss since you are using Turbo c then you are compiling for DOS. In that case you can use the system function from stdlib.h
system("format A:");
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
This is off-subject, but how do you format a 2 meg 3 1/2 floppy? All windows lets me do is 1.44 meg. Somehow I found a floppy that can hold 2 meg, but if you can't format that high, there is no use for it.
Well the floppy you have 2 megs might be a floppy using the linux file system. When you open it in windows it shows that it had more space.. But in reality it just holds 1.44 MB.
But how do you write the program to format a 1.44 Fdd.. Please help me....
Well even any help would be preferd..
What operating system is this to work on?
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
no, no
It says 2.0 MB on the little slide thing where it says the brand. The disk was made before Linux was even popular yet.
The problem is, I can't get all of the 2.0 MB if Windows only lets you format 700K and 1.44 MB.
PS: This is being formatted for use with Windows 98.
some of the space may be reserved for filsystem data and FATS, it doesnt neccessarily mean it will hold 2mb of data
Monday - what a way to spend a seventh of your life
It's dependent upon the format. You can get diskette's that can be read beyond 1.44MB.
Do a web search for a DMF format utility, about 1.7MB This is how most modern microsoft diskettes for software distribution are formatted these days. From memory I believe you can use this format for diskettes that are normally 1.44 MB rated with a normal 1.44 MB FDD.
I'm not aware of any utility to give you 2MB's out of one of these disk's, or using a standard 1.44 MB drive. However, you can get 2.88 MB floppy drives for use with 2.88 MB diskettes (IBM were the only people who used these a lot, mainly in laptops)
Hey guys forget it.. I just want to know how to write a program in turbo c++ (DOS) to format a normal 1.44 mb floppy...
well no one seems to have an answer for the above question.. Pitty
Well, didn't Stoned coders suggestion work? ( system("format A:"); )Originally posted by vasanth
Hey guys forget it.. I just want to know how to write a program in turbo c++ (DOS) to format a normal 1.44 mb floppy...
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
What you are looking to do is not really a basic task. I know very little about ultra low-level processes like this, but I imagine you would find more success asking this sort of thing on an Assembler and/or OS developement board.
I think fordy is right... I thought there was some sort of dos interrupt for this... but I'm not sure; People on an assembly board could know this indeed.
Well i am not looking for ( system("format A:"); ) because what this merely does is give a command to dos to format a floppy.. I am looking for something that can really format a floppy. I think this is possible is c+ because the header bios.h allows us to directly access the floppy and it's sectors.. May be we need an expert to answer this.. But learning this will be of a great help to us since it is the most basic low level programing..... Hope some one comes up with a solution...
You cannot do this without using the operating system as far as I know and I am not aware of a win32 api function to perform a low level disk format. In dos i'm sure it was done with some sort of int 21 call.You might want to check ralf brown's intterupt list.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi