Solved

dbase for DOS fix

Posted on 1998-09-18
10
1,235 Views
Last Modified: 2010-05-18
I have an old dbase file witch is corrupt.

does anyone know a fixprogram to fix this.

I tried dbrx14.exe but this program is no good.
0
Comment
Question by:dto
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
10 Comments
 
LVL 5

Expert Comment

by:chewhoung
ID: 1025716
Try some file from this site:
http://www.iag.net/~philb/ftputils.htm

try dbfdat.zip or other utility.

Related sites:
http://dspace.dial.pipex.com/town/square/tac61/ecvolink.htm
0
 
LVL 5

Expert Comment

by:vboukhar
ID: 1025717
I've such problems a lot of times, and solve it manually with any bynary editor (like Norton DiskEditor). DBF file have a very simple structure of header. If you want, I can scan it (I have only printed copy) and send you via e-mail, or you can send me your file and I fix it.
vboukhar@usa.net
0
 
LVL 5

Expert Comment

by:vboukhar
ID: 1025718
I mean description of DBF file structure, of course
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:dto
ID: 1025719
Please scan and email me a copy.

dto2@bigfoot.com
0
 

Author Comment

by:dto
ID: 1025720
No good,

I need a superB program for this file..

Very important !!!!!!!!!!!!!!!!!!!!!!

0
 
LVL 5

Expert Comment

by:vboukhar
ID: 1025721
Try compile such cod in any C compiler:
(structure of header is dbf_hd). Programm write on screen conents of dbf file)
#include "stdio.h"
#include "io.h"
#include "fcntl.h"
#include "conio.h"
main(int argc,char **argv)
   { int fptr,j;
     char *i;
     long int m;
     long gg;
     struct {
             char dbf_id;
             char last_up[3];
             long last_rec;
             unsigned data_off;
             unsigned rec_size;
             char filler[20];} dbf_hd;
     char stt[450],hist[450];
     if (argc==1) {printf("Wait for correct call\n");exit(0);}
     fptr=open(argv[1],O_RDWR|O_BINARY);
     if (fptr==-1) {printf("ERROR \n"); exit(1);}
     if (read(fptr,(char *)&dbf_hd,sizeof(dbf_hd))!=sizeof(dbf_hd))
         { printf("\n ERROR READING\n "); exit(2);}
     gg=lseek(fptr,(long)dbf_hd.data_off,SEEK_SET);
     m=0;
     while (m<dbf_hd.last_rec) {
      read(fptr,&stt,dbf_hd.rec_size);
      printf("%s\n",stt);
      gg=lseek(fptr,-(long)dbf_hd.rec_size,SEEK_CUR);
      m=m+1;
       }
    close(fptr);
    }

0
 
LVL 5

Expert Comment

by:vboukhar
ID: 1025722
it's part of programm was written some years ago on TurboC 2.0 :) Good luck!
0
 
LVL 5

Accepted Solution

by:
vboukhar earned 150 total points
ID: 1025723
In addition: there is program "FileFix.exe" from Norton Utilities for DOS, that could recover dBase files. I check it.

0
 

Author Comment

by:dto
ID: 1025724
I donnot have filefix.exe. where can i download it ?
0
 
LVL 5

Expert Comment

by:vboukhar
ID: 1025725
I sent you .zip with FileFix by e-mail.
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question