How to Remove Viruses using cmd | Delete all Virus from your PC without …
Now, follow the steps below to delete viruses from your computer or storage device using CMD.
- Type cmd in the search bar, right-click “Command Prompt” and choose “Run as an administrator”.
- Type F: and press “Enter”.
- Type attrib -s -h -r /s /d *.
- Type dir and hit “Enter”.
How can I remove Virus using cmd?
To remove Virus using CMD, type into your command prompt attrib -r -a -s -h *. * and press Enter. This will remove the Read Only, Archive, System and hidden file attribute from all the files. Once you have pressed enter, that file should get deleted from the current drive.