Hello
I have the following problem:
after my application opens an ODBC connection to the Paradox database and later closes it, Windows NT/2000 allows me to delete the database files but NOT the empty directory in which the database files were located. Windows gives a Sharing Violation Error when I try to remove the empty directory. It only allows to remove the empty directory after the application closes. On Windows 95/98 everything works fine. The reason I need to remove the directory is that when my program starts it creates a temporary work directory.
Is there a way to remove the empty directory without closing the application?
I have the following problem:
after my application opens an ODBC connection to the Paradox database and later closes it, Windows NT/2000 allows me to delete the database files but NOT the empty directory in which the database files were located. Windows gives a Sharing Violation Error when I try to remove the empty directory. It only allows to remove the empty directory after the application closes. On Windows 95/98 everything works fine. The reason I need to remove the directory is that when my program starts it creates a temporary work directory.
Is there a way to remove the empty directory without closing the application?