up vote 0 down vote favorite
1
share [g+] share [fb]

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

link|improve this question
feedback

1 Answer

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.

link|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
feedback

Your Answer

 
or
required, but never shown