Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a registry key to tell windows to delete a file at next startup?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Yes, the values are stored in the registry key

HKLM\System\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations

but you'd better use a tool for this, like MoveFile from SysInternals, or MoveLatr from BitSum (C source code provided for the latter), which do the registry editing for you.

share|improve this answer
    
Personally I prefer MalwareByte's FileAssassin - malwarebytes.org/fileassassin.php –  Dentrasi Oct 21 '09 at 18:59
    
That sounds like what I need. I will look at it tomorrow and accept the answer if that's it. Thanks! –  user14872 Oct 22 '09 at 1:40
    
Sorry i haven't gotten back to this yet, but don't worry I won't forget :) –  user14872 Oct 23 '09 at 17:23
    
I been on another project for the past two weeks, but I will get back to this eventually I promise lol. –  user14872 Nov 6 '09 at 0:56
    
Thanks Snark! That was the correct registry key that I needed, and I was able to discover the ::MoveFileEx function by looking at that source code; It was exactly what I needed!! Thanks again!. –  user14872 Nov 9 '09 at 2:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.