Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Add System Protected folders in Batch Delete Process

$
0
0

I need to add system folders to this script in order to get rid of old Internet Explorer Maintenance data that is conflicting with new group policy settings.

*

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)

*

Have tried many options I have found but nothing seems to get rid of the system protected folders and files. These need to be deleted before the old IEM settings no longer impede on updates to IE proxy.

All help appreciated.



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>