Or even better... how can I get a list of all files in the current directory (the directory which the executable was invoked from)?
I think ReadDir command could help you; here's the link:
http://www.blitzbasic.com/bpdocs/command.php?name=ReadDir&ref=goto
To retrieve the current directory, use CurrentDir() command:
http://www.blitzbasic.com/bpdocs/command.php?name=CurrentDir&ref=2d_cat
Sergio.