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

One or more comments are waiting for approval by an editor.

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.