Run the DOS-command: "DIR C:\mymaps\*.tab /b >C:\temp.txt"
Now import this file as a one-column delimited text-file. This is quite easy to do in
MapBasic.
Then it's just a matter of running through the imported table.
/Morten Nielsen
BlomInfo A/S
----- Original Message -----
From: "Snashall, Scott" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 5:21 PM
Subject: MI-L Determining number of mapinfo tables within a directory
>
> Hello I have a mapbasic question.
>
> I have a mapbasic script that creates multiple tables that get
> placed within a directory. Each table has the exact same name accept for a
> counter ie (table1.tab,table2.tab) All the fields wihtin the table are
> exactly the same.
>
> I woud like to append these tables into one master table(mastertable.tab).
> As well the number of tables that gets placed within this directory will
> very.
>
>
> ie
>
> C:\temp contains
>
> table1.tab
> table2.tab
> table3.tab
>
> would like to append and create
>
> mastertable.tab
>
> the next day
>
> C:\temp could contain
>
> table1.tab
> table2.tab
> table3.tab
> table4.tab
> table5.tab
>
> How can I have mapbasic loop through this directory determine the
> number of tables within that directory and then append all of these tables
> into on master file.
>
> your help is appreciated
>
> thanks
>
> ( :
>
>
>
>
> ~~~~~~~~~~ Advertisement ~~~~~~~~~~~
> Middle East Datasets from LAND INFO
> Imagery, digital elevation models (DEM), topographic maps, and vector layers
> are now available for Saudi Arabia, United Arab Emirates, Kuwait, and other
> regions. Visit http://www.LANDINFO.com/directions.htm for imagery and map
> datasets covering over 125 countries.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> _______________________________________________________________________
> 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.
>
_______________________________________________________________________
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.