RogeneJih,
   I posted a description of how to use the Universal Translator on the 
command line about a year ago.

Here is the posting from 03/20/3001:

*************
For all of those mapinfo users frustrated by the Universal Translator (UT) 
utility not having a batch process.

I finally got around to needing to run the UT as a batch process for 
several thousand files.
It's a 2 step process to generate a mapping file from the mapinfo file to 
the shape file and then to do the
processing.

STEP 1: Generate the translation mapping file
at the dos command line enter:
c:\mapinfo6\ut\imut CFGenerate MAPINFO SHAPE "C:\Topo\50\1M\10\MapInfo/" 
"format.dat"
LOG_STANDARDOUT YES +ID "wetland"

All the pieces:
c:\mapinfo6\ut\imut - UT executable
CFGenerate - Generate command
MAPINFO - input file type
SHAPE - output file type
"C:\Topo\50\1M\10\MapInfo/" - input path, notice the end slash, it seems to 
need it
"format.dat" - output mapping file used in step 2
LOG_STANDARDOUT YES +ID - some UT variables for logging
"wetland" - input file name, quotes are important

This will create a file called format.dat which contains all of the 
information UT needs
to map from the Mapinfo file "wetland" to the Shape file.


STEP 2: Do the translation
The next step in the process requires a control file you have to create 
yourself.
I called this file doimut.dat

Start Contents: everything below this line
MACRO _EXTENSION TAB
MACRO _BASENAME wetland
MACRO _FULLBASENAME wetland
MACRO SourceDataset C:\Topo\50\1M\10\MapInfo/
MACRO DestDataset c:\temp\ut
INCLUDE format.dat
MAPINFO_IDs "wetland"
MAPINFO_IN_IDs "wetland"
End Contents: everything above this line

The quotes are important
The path should match the one used in the generate STEP 1
The format.dat is the mapping file created in STEP 1
The file name should match the one used in the generate STEP 1

The Command Line:

c:\mapinfo6\ut\imut doimut.dat


I wrote a short script to create all of the pieces and then execute them 
and it worked out fine.

Larry Nolan
[EMAIL PROTECTED]
http://solutionsgroup.tripod.com Mapinfo Utilities
***********





_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to