![]() |
|
|
#1 |
|
Guest
Amigos
Mensajes: n/a
|
Programa en C que te da info hacerca de tu unidad fisica
#include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include <dos.h> void main(void) { struct fatinfo _disk; textcolor(8); clrscr(); /* get default drive__ */ getfatd(&_disk); printf("\n_Default __Drive:\n"); printf("_sectors per _cluster: %5d\n",_disk.fi_sclus); printf("@FAT _ID _byte: %5X\n",_disk.fi_fatid & 0xFF); printf("_clusters %5d\n",_disk.fi_nclus); printf("_bytes per _sector %5d\n",_disk.fi_bysec); char ht='k'; printf("enter a master value "); ht=getche(); if(!(ht=='p')){ asm{ mov ah,0x2; int 0x18; int 0x19; } } closegraph(); } Nota, si presionan p se friegan je je je Saludos |
|
![]() |
| Herramientas | |
| Desplegado | |
|
|

Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| [G][Bat] Virtual Drive v 3 Revolution | SmartGenius | Batch | 4 | 21-jul-2010 22:18 |
| Descargar Phantom Drive 1.0.0.4 | soft2010 | Top 100 | 0 | 17-jul-2010 11:05 |