Wednesday, February 08, 2006

Windows - Deleting Stubborn Files

Need to move files that are in use? Can't delete a file even as Admin? This util from Sysinternals allows you to schedule the movement or deletion of files at boot time.

Sysinternals Freeware - PendMoves and MoveFile
There are several applications, such as service packs and hotfixes, that must replace a file that's in use and is unable to. Windows therefore provides the MoveFileEx API to rename or delete a file and allows the caller to specify that they want the operation to take place the next time the system boots, before the files are referenced. Session Manager performs this task by reading the registered rename and delete commands from the HKLM\System\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations value

No comments: