Good idea. I tried a projecthook class and put the code in the QueryModifyFile method.
Unfortunately, it doesn't work: I can't issue a CLEAR ALL command from within a projecthook method, because the class itself is in use and raises an error.
Gensoft Sàrl
Christian Carron