Jump to content

Recommended Posts

Posted

hi

how can i delete a exe via runonce i know this one but that is for a folder

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"Cleanup1"="cmd /C RD %systemdrive%\\install /S /Q"

and what if the path is program files\blabla\blabla\hello.exe

question 2:

how to do it via a batch file to regedit RunOnce to delete a exe file

same as above

thanks

:hello:


Posted
hi

how can i delete a exe via runonce i know this one but that is for a file

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"Cleanup1"="cmd /C RD %systemdrive%\\install /S /Q"

and what if the path is program files\blabla\blabla\hello.exe

question 2:

how to do it via a batch file to regedit  RunOnce to delete a exe file

same as above

thanks

:hello:

Like this...

BATCH.CMD

REG.EXE ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v "DelFile1" /d "CMD.EXE /C DEL /F /Q \"%PROGRAMFILES%\blablabla\FILE.EXE\""

REG.EXE is include with Windows XP and don't forget that many Windows files in Program Files folders are protected by WFP

:)

Posted
btw becomes "DelFile1" "DelFile2" if you have 2 exe's to delete?
Yes
and for the reg file does anyone know?

For a file

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"Cleanup1"="cmd /C DEL /S /Q \"%programfiles%\\install\\file.exe\""

For a folder

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"Cleanup1"="cmd /C RD /S /Q \"%programfiles%\\install\""

Posted

btw becomes "DelFile1" "DelFile2" if you have 2 exe's to delete?

Yes

and for the reg file does anyone know?
For a file

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"Cleanup1"="cmd /C DEL /S /Q \"%programfiles%\\install\\file.exe\""

For a folder

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"Cleanup1"="cmd /C RD /S /Q \"%programfiles%\\install\""

THANK YOU jdoe

:yes::thumbup

Posted
REG.EXE is include with Windows XP and don't forget that many Windows files in Program Files folders are protected by WFP

Does xp home have REG.EXE to, can someone check for me

and if you do check also if you have xcopy.exe in your system32 folder, just whant to know :)

Posted
Does xp home have REG.EXE too
Yes, it has. XCOPY.exe is present too.

The main things missing (from unattended point of view) is taskkill.exe and gpedit.msc and PageFileConfig.VBS.

Posted
Does xp home have REG.EXE too
Yes, it has. XCOPY.exe is present too.

The main things missing (from unattended point of view) is taskkill.exe and gpedit.msc and PageFileConfig.VBS.

thanks for for your answer prathapml :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...