Ok, this is a new question after getting the "traverse subdirectories" one solved (with Graeme's help, of course). This is the code I currently have:
defmain()
{
int i = 0;
int j = 0;
parse arg(1) with StartPath FileType[0] FileType[1] FileType[2] FileType[3] .;
while(FileType[j] != '')
{
_str filename = file_match(StartPath :+ '\' :+ FileType[j++]' +d +t',1);
while(filename != '')
{
load_files('+w 'filename);
i++;
_set_focus();
sticky_message('file found='filename);
filename= file_match(filename,0);
delay(5);
}
}
sticky_message(i' files loaded');
}
This works fine (for the most part, but more on that later), and opens up all of the files of the types specified on the command line in the parrent directory and all subdirectories. However, all tag information, I guess, or something, is gone, and I can't seem to get it back. For example, I have a 'Defs' pane open in the editor, and if I go open files in my test path manually, as each file opens, all of the Defs information is there, showing a list of functions in each file, global symbols, etc. However, when I open the same files with the script above, all that shows is the filenames alone, and I have to manually close the Defs pane and then reopen it before I can even get that.
The tag functions are many in number, and of course, lacking in the documentation department. Could anyone shed any light?
Thanks,
Clark