Tool Crib Management Solutions
Home | About Me | Favorite Links | Contact Me

Welcome to a WeBlog about ITC's Tool Management Systems!
Information found here will generally concern a solution or recommendation to a question posed by a user - but not always.

This weblog is my online help desk and notepad. You'll find answers and opinions on a variety of topics as well as links to other web pages that provide answers.  TLC Legacy Users & Kennametal TLM Users - Upgrade your systems to TLC32. New Pricing for 2008..  For details call 919.607.1010.  CLICK the Following LINK to download the 2005 Tool Management Newsletter.
 

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!

itclogo.gif

This area may include links that highlight areas of the weblog. For example, I might include links to items in the Tool Crib Management Site.

Link to Tool Crib Management Website Archives Page for Past Subjects

Be sure to get in touch so I know you're out there!

Providing Solutions for Tool Management Systems & Tool Cribs Since 1980