|
Thursday, February 24, 2005
Tell Me about Reinitializing a TLC DATAFILE
Running the undocumented utility called REINIT.EXE can be dangerous. You can find it on the CD-ROM that came with your
system (look in the :\TLC32(Prof or ORG)\EXTRAS\ Directory). It will reinitialize a database's TLC files to zero length files.
To run this utility it must be run from Command Line. Be sure your TLCDATA environment variable is SET to the correct
directory before running this utility.
The following is an example about how to do this.
First, Change Directory to where the ReINIT utility is and set the TLCDATABase environment variable.
C:\TLC32\Bin>set tlcdata=c:\tlc32\gentexd (this is the same as the TLC.CFG setting)
Now you can run the command - a sample session is shown below the command
C:\TLC32\Bin>reinit
The 'c:\tlc32\gentexd/toolid' file contains 2036 records.
Do you wish to erase and reinitialize the file? n
The 'c:\tlc32\gentexd/kitid' file contains 0 records.
Do you wish to erase and reinitialize the file? n
The 'c:\tlc32\gentexd/kitdef' file contains 0 records.
Do you wish to erase and reinitialize the file? y
Are you sure?
As you can see it will ask you twice if you answer Yes to any reinitialization.
Note: Cntrl C will get you out of the utility and EXIT at the C: Prompt will get you out of Command Line.
Running this utility will create empty database files or you can simply copy the empty database files from the TLC32 CD-ROM.
Example to create an empty KITID.DAT, KITID.IDX and KITID.LCK file, copy the files of the same name from the CDROM Directory:
\TLC32(Prof or ORG)\EXTRAS\data.
The file sizes should be: KITID.DAT -0KB, KITID.IDX -3KB and KITID.LCK -1KB. You cannot create an empty CISAM file unless
you use the REINIT utility. Copying from the CD is the safest way. Remember to change the properties of the
files to ARCHIVE after you copy them from the CD to your DATA directory.
If you are working on one database you may want to have it copied or backed up before running this utility or replacing files.
If you are creating another database you may want to copy or rename an existing database and REINIT it. In the end the data
in the data files of the database you REINIT will be destroyed.
9:02 pm
|
 |
|
2005.02.01 |
2004.11.01 |
2003.11.01 |
2003.10.01
|
Select the above settigs to view the ARCHIVE of past POSTINGS or to RETURN to the Current POSTING PAGE.
I'll make changes to this site on a regular basis, sharing news, views, experiences, photos...whatever occurs to me.
Check back often!
|