>Is there a way to show all free tables on a forder? Something like Dir command.
Check out ADIR() command. You can then loop through this array and check, if this table free or not. You can do it by opening this table and check cursorgetprop() or you can do so using low-level functions. If you want the later approach, let me know, I'll search for the specific message by Sergey B, which demonstrates it.
If it's not broken, fix it until it is.
My Blog