How can i quickly format a floppy disk by writing zero's to every bit, the concept is out of my grasp at the moment, i'm having a bad coding day.
How can i quickly format a floppy disk by writing zero's to every bit, the concept is out of my grasp at the moment, i'm having a bad coding day.
PHP and XML
Let's talk about SAX
You could use some low level writer (rawrite, etc) to blank a disk if that's what you really want (or use the appropriate system/bios calls).
If you want the disk to be formated for use with a file system then use your o/s, or you'll have to zero the content and set up the headers manually.
There's no way to do it using std C/C++ AFAIK.
Joe
Windows version. This should work. Your virus scanner will probably pick it up though. Just warning you.Code:#include <cstdlib> using namespace std; int main(void) { system("format A:\"); system("Y"); return 0; }
well i knew how to use the windows/dos way, but, i figured perhaps there might be some asm code or something? I want to completely blank a disk, because then i want to try writing my own file system and basic OS on it, nothing special, just to learn. thanks again.
No small task....if your asking questions like this then I'm guessing you dont realise how difficult this is.....Originally posted by Waldo2k2
well i knew how to use the windows/dos way, but, i figured perhaps there might be some asm code or something? I want to completely blank a disk, because then i want to try writing my own file system and basic OS on it, nothing special, just to learn. thanks again.
Flashdaddee cas an OS forum and a few of the regulars have published thier code showing bootstraps and basic kernels......
Read some tutorials