Hi Jim, I'm not too familiar with MapBasic but I'm using an MBX (written by someone else) that gets filenames out of a table that the program creates from a txt file that in turn got created by a DOS command line command: DIR *.txt /b > filenames.txt This command for example would get the names of all *.txt files in a new txt-file, separated by newlines. You than may register this txt-file as a table and process its rows. I don't know if you could get MapBasic run this DOS command, I'm actually doing it separately. Regards, Bjoern -----Ursprüngliche Nachricht----- Von: Jim Wilson [mailto:[EMAIL PROTECTED]] Gesendet am: Freitag, 12. Januar 2001 08:56 An: [EMAIL PROTECTED] Betreff: MI-L Batch process text files Hi all, I am writing a MB program to process a txt file which works ok now but as I have a lot of txt files to process I would like to be able to select multiple txt files at one time and have the program process them one after another. I was planning to select the multiple files from the FileOpenDlg( ) function (as you are able to do in MapInfo) however no matter if I press the shift or Ctrl keys, I can only select 1 file at a time. I also looked at a MBX called Batch Tools from Computamaps and it allows you to select one file then it searches for all the files of a similar type in the same directory. I think I see how I would embed my current code in a loop and then select the different tablenames one by one from a "batchcontroltable" but how do you get the file names into the batchcontroltable in the first place? TIA Jim Wilson _______________________________________________________________________ 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.
