Once in a while you will come across a file that you can’t move or delete because it is always in use.
A trick to get around this is to have Windows delete or move it on startup – before the system is running and the file is back in use again.
How can you tell Windows to do this?
With a free tool from Microsoft.
It is called MoveFile, and you call it like this from the command line:
movefile c:\temp\source.txt c:\temp\dest.txt
This would move the file
dest.txt on the next reboot
If you wanted to delete the file, simply provide an empty destination:
movefile c:\temp\source.txt ""
Windows will quietly remove it during the next reboot.
Included in the download is a utility called “PendMoves”. This little app will let you know what moves are pending:
Sysinternals - wwww.sysinternals.com
Time of last update to pending moves key: 9/1/2011 1:47 AM
Both utilities are free for personal and commercial use, and can be downloaded from here:
One more thing…Subscribe to my newsletter and get 11 free network administrator tools, plus a 30 page user guide so you can get the most out of them. Click Here to get your free tools