HTH >How do I test if a file is already open? The file I want to check is a pdf file not a foxpro table. I've tried fopen() but it always gives me a valid handle regardless if it is open. Delete file gives me an error message if the file is open. Any ideas? > >Tim