Deleting folders at various locations using Single Script on Windows

One may find a malicious folder created in mulitple domains under various folders/subfolders. It is hard to delete those folders one by one. So you can use the script below to delete those folders recursively

FOR /D /R D:\folder %%X IN (PUMA) DO RMDIR /S /Q "%%X"

In the "%%X" flie, you will need to write the folder name which you want to delete.

D:\folder %%X = path by which you want to search those folders.

Open Notepad and then paste that script and save as a .bat file.

Shubham | Tuesday 23 December 2014 - 11:05 pm | ΒΆ | Default | Three comments