Hi.
Problem description: an application uses 2 directories, let's say A and B.
When I choose option 1, the application will load data from A.
If I choose the option 2, the application has to rename A to C and B to A. It loads data from A. Now, I have the directories A and C.
If I choose again the first option it has to rename A to B and C to A. It should load data from A. Now, there are directories A and B.
The problem is that the application does not work well. For example, if I choose option 2, close application, start application and choose option 1, it will not rename those directories, and it will not find the ritght data. The application starts with a menu from where I choose the option, so, to change the option I have to restart the application.
If I restart the computer I can safely choose the other option, it works fine. But it is time consuming...
I can't rename those directories if I don't restart the computer ("file is locked"; in fact, A is locked -- I made a .bat file to rename the directories, but when A is locked the .bat file moves the other directory in A and that is not good) .
I tried to see modifications in registry, but I am probably too clumsy... I have seen nothing...
I used process explorer to see what files uses that application... It didn't helped. I strongly believe that the answer is in Windows registry, but I don't know how to solve it yet.
How can I find what files are locked and by "my" applicaton? How can I unlock them?