Windows 7 delayed file delete
Lately I have this problem regarding deleting EXE files on my Windows 7 installation.
- I am an administrator on this computer.
- The file is not locked by any process. (checked with Unlocker)
- The program (exe file) is not running in the background.
- There aren't any file system inconsistencies. (checked with CHKDSK)
- There are no bad sectors on my hard drive.
Problem: Whenever I try to delete an exe file, the deleting process completes successfully, but the file won't disappear from Windows Explorer (tried also the cmd, the file is still there). Whenever I do a software upgrade (which needs to replace an exe file) it finishes with an error: "Can't replace file xyz.exe".
The idea is that the file will disappear after 1-2 minutes after being deleted.
I'm a developer and I can tell that building a source code drives me mad, because the exe file can't be replaced by the compiler, only after I manually delete the file and wait for 1-2 minutes for it to disappear.
What I have already tried:
- Scanning the computer for malware/viruses and all kinds of threats.
- Deactivating/uninstalling the antivirus protection.
- Checking the hardware for any problems (mainly my hard disk drive).
- Deleting from safe mode works (but I don't want to restart my computer every time I need to delete an exe file).