Goto Dos Prompt
write
c:\ dir *.dxf  > dxffiles.txt

In Mapinfo Open Table
make the file type TXT and select dxffiles.txt
open it
save a copy of this file (let say mydxfs.tab)
open mydxfs
open mapbasic window
write
UPDATE mydxfs SET col1 = write$(col1,len(col1)-44)  'because in dos file
names start in 44th position
this command leaves only file names including long file names (but in
windows 95/98)
delete first and last few lines which are not filenames
Pack yout table

now you can make For..Next

Best Regards




-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: 17 Eylül 1999 Cuma 17:52
Subject: MI MapBasic - Multiple Files


>Hi Folks,
>
>I've written a small MapBasic program which imports only a few layers from
>a DXF file
>into a TAB file.  Unfortunately there are about 700 files I need to do this
>with and
>my program only lets me choose one at a time.
>Could anyone give me any hints as to how to get a list of files so I can
>stick them in
>an array and use a For..Next Loop to do all the files in a directory (if
>that's the correct
>way to do it)?
>
>Thanks in advance
>
>Gordon Stenhouse
>North of Scotland Water Authority
>
>NOTE: The information in this email is confidential and may be legally
>privileged. If you are not the intended recipient, you must not read, use
>or disseminate that information. Although this email and any attachments
>are believed to be free of any virus, or any other defect which might
>affect any computer or IT system into which they are received or opened, it
> is the responsibility of the recipient to ensure that they are virus free
>and no responsibility is accepted by North of Scotland Water Authority for
>any loss or damage arising in any way from receipt or use thereof.
>
>
>----------------------------------------------------------------------
>To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
>"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to