Subj : Accessing Windows File Table To : borland.public.cpp.borlandcpp From : Steven Date : Fri Sep 05 2003 06:23 pm Hello All, My Problem: I go to run a program, and it terminates abnormally, and it leaves open file handles on my computer. Therefore I am unable to delete these these files that were left by the program. In order to close the files, I must restart my computer. The problem exists at the part where I am unable to delete the files. This prevents me from running the program again, bc it cannot create the files that it left open during the first run. I know the ideal thing would be to fix the original program and use try .. catches to prevent abnormal program termination. However, I do not have direct access to the original program source code. How I would like to solve it: Write a program (in Borland C++ 5.02) that I send in a file name, it then looks up the file name in what I guess would be the windows file table, and then releases the file handle, and deletes the file. Any suggestions on where to start looking, or what I would need to know to do this would be great. Thanks, Steve .