Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

reg file to delete on reboot


  • Please log in to reply
6 replies to this topic

#1 Lobos

Lobos

  • Members
  • 317 posts
  • OFFLINE
  •  
  • Location:California USA
  • Local time:02:47 AM

Posted 19 March 2005 - 01:16 AM

This will only work on 2000 or XP machines


first back up the registry

Then copy and paste this into notepad . Save it as WHatever.reg
double click the whatever.reg file . right click on any file you would like to delete.
you will now notice delete on reboot in the right click menu


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\""



I found this at speed guide and he found it here

http://www.msfn.org/board/index.php?showtopic=36948&st=20

Edited by Lobos, 19 March 2005 - 01:17 AM.

<span style='color:blue'>Ad-Aware SE</span> | Spybot S&D 1.4

For extra protection try spyware blaster

<span style='color:blue'>If you use IE I suggest using these two programs</span> MVPHosts & IE-SPYAD

BC AdBot (Login to Remove)

 


#2 PrittStick

PrittStick

  • Members
  • 97 posts
  • OFFLINE
  •  
  • Location:Wolverhampton, England
  • Local time:09:47 AM

Posted 19 March 2005 - 04:51 AM

What does it do?

#3 Lobos

Lobos
  • Topic Starter

  • Members
  • 317 posts
  • OFFLINE
  •  
  • Location:California USA
  • Local time:02:47 AM

Posted 19 March 2005 - 06:07 AM

It adds a delete on reboot in the right click menu

So if you have stubborn file or folder that doesnt want to delete

it will delete for you the next time you reboot.

You just right click on the file you want deleted then click delete on reboot
<span style='color:blue'>Ad-Aware SE</span> | Spybot S&D 1.4

For extra protection try spyware blaster

<span style='color:blue'>If you use IE I suggest using these two programs</span> MVPHosts & IE-SPYAD

#4 PrittStick

PrittStick

  • Members
  • 97 posts
  • OFFLINE
  •  
  • Location:Wolverhampton, England
  • Local time:09:47 AM

Posted 19 March 2005 - 12:04 PM

Oh right. I have a couple of stubborn files, one's kinda gay and it just wont go. I'll give that a try.

#5 PrittStick

PrittStick

  • Members
  • 97 posts
  • OFFLINE
  •  
  • Location:Wolverhampton, England
  • Local time:09:47 AM

Posted 19 March 2005 - 12:08 PM

Where do you save the Whatever.reg file?

Edited by PrittStick, 19 March 2005 - 12:08 PM.


#6 Lobos

Lobos
  • Topic Starter

  • Members
  • 317 posts
  • OFFLINE
  •  
  • Location:California USA
  • Local time:02:47 AM

Posted 19 March 2005 - 03:55 PM

save it to your desktop then double click it and let it merge with your registry

remember to always back up your registry before editing it

You can delete the file after that
<span style='color:blue'>Ad-Aware SE</span> | Spybot S&D 1.4

For extra protection try spyware blaster

<span style='color:blue'>If you use IE I suggest using these two programs</span> MVPHosts & IE-SPYAD

#7 Papakid

Papakid

    Guru at being a Newbie


  • Malware Response Team
  • 6,629 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:04:47 AM

Posted 19 March 2005 - 10:13 PM

Another word of caution here. Be completely sure of what the file is you want to delete and what it does before you use this method to delete. There's no easy way to back out of deleting a file once you have selected that option. And you're not going to have a backup file if you want it back unless you make one yourself.

Edited by Papakid, 19 March 2005 - 10:15 PM.

The thing about people

is they change

when they walk away.--Mipso





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users