Can anyone assist with getting the following command to also delete System Protected Files?
*
taskkill /F /IM iexplore.exe
choice /C X /T 5 /D X > nul
set folder="%USERPROFILE%\Appdata\Local\Microsoft\Internet Explorer"
cd /d %folder%
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
*
IE can be such a pain, and really I need the system folders to be deleted to get rid of old deprecated Internet Explorer Maintenance information and wiping the system folders is the only way to accomplish that.
Scripting is not my strongest suit and I have tried everything I can find to get some sort of System folders/files to delete within the target, all have failed.
Delete System Folders from designated folder
Moderator: DosItHelp
Re: Delete System Folders from designated folder
Jamin6900 wrote:Can anyone assist with getting the following command to also delete System Protected Files?
IE can be such a pain, and really I need the system folders to be deleted to get rid of old deprecated Internet Explorer Maintenance information and wiping the system folders is the only way to accomplish that.
In Modern windows you need to change the permissions of the folders, and that can even be impossible in some cases as Windows has been written to be far more robust against malware and hacking.
There are these system tools you can use to change permissions.
icacls.exe
takeown.exe