sixpack Posted December 1, 2004 Posted December 1, 2004 hihow 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.exequestion 2:how to do it via a batch file to regedit RunOnce to delete a exe filesame as abovethanks
jdoe Posted December 2, 2004 Posted December 2, 2004 hihow 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.exequestion 2:how to do it via a batch file to regedit RunOnce to delete a exe filesame as abovethanks Like this...BATCH.CMDREG.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
sixpack Posted December 2, 2004 Author Posted December 2, 2004 thanks jdoe btw becomes "DelFile1" "DelFile2" if you have 2 exe's to delete?and for the reg file does anyone know?
jdoe Posted December 2, 2004 Posted December 2, 2004 btw becomes "DelFile1" "DelFile2" if you have 2 exe's to delete?Yesand for the reg file does anyone know?For a fileWindows 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 folderWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]"Cleanup1"="cmd /C RD /S /Q \"%programfiles%\\install\""
sixpack Posted December 2, 2004 Author Posted December 2, 2004 btw becomes "DelFile1" "DelFile2" if you have 2 exe's to delete?Yesand for the reg file does anyone know?For a fileWindows 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 folderWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]"Cleanup1"="cmd /C RD /S /Q \"%programfiles%\\install\""THANK YOU jdoe
sixpack Posted December 2, 2004 Author Posted December 2, 2004 REG.EXE is include with Windows XP and don't forget that many Windows files in Program Files folders are protected by WFPDoes xp home have REG.EXE to, can someone check for meand if you do check also if you have xcopy.exe in your system32 folder, just whant to know
prathapml Posted December 2, 2004 Posted December 2, 2004 Does xp home have REG.EXE tooYes, 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.
sixpack Posted December 2, 2004 Author Posted December 2, 2004 Does xp home have REG.EXE tooYes, 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now