My task is to write a command line program, which has to try and delete a file which is in use.
The reason for this is because I am writing a tool which is used for removing malware, and it is very time consuming to have to load up a boot disk every time we want to remove one of these files.
Can anyone point me in the right direction for doing this.
I know that I can usually just delete the file on reboot, but even this sometimes doesnt work.