Remove .exe files caused by malware

Hi there and good day

My friend brought his external to me to remove the viruses that's on it.

Ive remove the virus on it  but the files that had been replicated into exe extensions are still left behind.

The files are all the same size and I want to remove them all at once without going into each folder and removing them manually.

Could anyone help me with this please maybe a cmd line that could remove them all at once?

Thanks for reading my question

[Original Title: replicating virus]

You may do it easily with PowerShell, try open Windows PowerShell as administrator and type the following:

Remove-Item f:\malware\* -include .exe

Make in f:\malware\* add the name of the driver and folder and * is meaning all subfolders within the malware folder. if you want it within the driver you may write something like f:\* and -include .exe will remove all files with .exe extension.

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated April 19, 2025 Views 1,110 Applies to: