Recover data from floppy disk code file information

Files Recovery Software
Home Contact Details Customer Support Download Demo Products  

 
 

/// Calculate the Size \\\

root[file_no].size =(long unsigned int)(0xff & buf[31+i])*16*16*16*16*16*16*16*16;

root[file_no].size+=(long unsigned int)(0xff & buf[30+i])*16*16*16*16;

root[file_no].size+=(long unsigned int)(0xff & buf[29+i])*16*16;

root[file_no].size+=(long unsigned int)(0xff & buf[28+i]);

if((root[file_no].start == 0) ||
(root[file_no].attribute == 15))
continue;
else
{
gotoxy(8,i/32+4);
cprintf("%2u",file_no); /* Display File Number */

for(j=0;j<8;j++)
{
gotoxy(14+j,i/32+4);
cprintf("%c",root[file_no].name[j]); /* Display File Name */
}

for(j=0;j<3;j++)
{
gotoxy(26+j,i/32+4);
cprintf("%c",root[file_no].ext[j]); /* Display Extension */
}

gotoxy(30,i/32+4);
cprintf("%u",root[file_no].attribute); /* Display Attribute */
if(root[file_no].attribute==16)
{
gotoxy(33,i/32+4);
cprintf("<DIR>"); /* Display if Directory Attribute */
}
else
{
gotoxy(33,i/32+4);
cprintf("<FILE>"); /* The Entry is of a file */
}

gotoxy(44,i/32+4);
cprintf("%-5u", root[file_no].start); /* Display Starting Cluster */
gotoxy(58,i/32+4);
cprintf("%-10lu", root[file_no].size); /* size of the File */
}
file_no++;
}

gotoxy(10,21);
cprintf("Press 'M' : To see list of more files ");

gotoxy(10,22);
cprintf("Press 'R' :To recover a file from the above list");
ch=getch();

Previous page

page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20


page 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33

Next page
 
 
Data Recovery Book
 
Chapter 1 An Overview of Data Recovery
Chapter 2 Introduction of Hard Disks
Chapter 3 Logical Approach to Disks and OS
Chapter 4 Number Systems
Chapter 5 Introduction of C Programming
Chapter 6 Introduction to Computer Basics
Chapter 7 Necessary DOS Commands
Chapter 8 Disk-BIOS Functions and Interrupts Handling With C
Chapter 9 Handling Large Hard Disks
Chapter 10 Data Recovery From Corrupted Floppy
Chapter 11 Making Backups
Chapter 12 Reading and Modifying MBR with Programming
Chapter 13 Reading and Modifying DBR with Programming
Chapter 14 Programming for “Raw File” Recovery
Chapter 15 Programming for Data Wipers
Chapter 16 Developing more Utilities for Disks
Appendix Glossary of Data Recovery Terms
 
 

 

Pro Data Doctor

Home

Products

Contact Details

Customer Support

Download Demo

Terms and Conditions

 
Pro Data Doctor