Difference between revisions of "Delete on reboot"

From ATTWiki
Jump to: navigation, search
(Steps)
 
Line 1: Line 1:
 
This was tested in Windows XP.  It allows for deletion of files and folders that will not allow for deletion while running Windows.
 
This was tested in Windows XP.  It allows for deletion of files and folders that will not allow for deletion while running Windows.
  
==Steps==
+
==Steps To Add Feature==
  
 
* Create a text file with this information:
 
* Create a text file with this information:

Latest revision as of 14:48, 30 November 2009

This was tested in Windows XP. It allows for deletion of files and folders that will not allow for deletion while running Windows.

Steps To Add Feature

  • Create a text file with this information:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Delete on reboot\command]
@="CMD /E:OFF /C REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Currentversion\\RunOnce /v \"Del %1 OnNextReboot\" /d ^\"cmd.exe /c DEL /F /Q \\\"%1\\\"\" /f\""

[HKEY_CLASSES_ROOT\*\shell\Open]

[HKEY_CLASSES_ROOT\Folder\shell\Delete on reboot\command]
@="CMD /E:OFF /C REG ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\Currentversion\\RunOnce /v \"Del %1 OnNextReboot\" /d ^\"cmd.exe /c RD /S /Q \\\"%1\\\"\" /f\""

  • Save it as a file with a .reg filename extension.
  • Create a restore point in Windows (to backup the current registry before the change).
  • Double click to run the reg file and insert the code into