Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

Make money selling software. Check this out here

Hosted clickbank mall. Check this out here




   Misc

   Amazon

   Links

    


Displays FAT info
 

 

Description

This displays some FAT information . This does not work with NTFS .

Code

#include <stdio.h>
#include <dos.h>

void main(void)
{
struct fatinfo fat;

getfatd(&fat);

printf("Sectors per cluster %d\n", fat.fi_sclus);
printf("Clusters per disk %u\n", fat.fi_nclus);
printf("Bytes per cluster %d\n", fat.fi_bysec);
printf("Disk type %x\n", fat.fi_fatid & 0xFF);
}

Information

tested using Borland Turbo C on a DOS system

 

 
 

 

Download

fatinfo.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Wired news(PHP)
check if SQL server is installed on your computer(VBScript)
decimal to octal conversion(PHP)
open a zip file and display file information(PHP)
Domain name to IP address(PHP)
diagonal gradient(VB)
total no of colors(VB)
Move a folder with MoveTo(C Sharp)

    




Copyright © 2003 by programmershelp.co.uk