How to Find and Remove Virus in Windows using Command Prompt

How to Find and Remove Virus in Windows using Command Prompt

Viruses are the programs which any computer user doesn’t want to enter his/her PC. Though you have got some sort of anti-virus and it is capable enough to detect and remove virus from your system but sometimes even your antivirus fails to detect some sort of viruses, in that case cmd prompt may help you out and remove virus from computer.
There are some suspicious viruses like autorun.inf which initiates all the viruses in the computer and cannot be detected by your antivirus.
Follow the below steps carefully and remove viruses from computer –
These steps needs to be carefully done as a small mistake can interrupt your operation
I.) Click on “Start” button from the desktop and type in ‘ cmd ‘ in the search box or you may navigate to Start >> All Programs >> Accessories >> Command Prompt.
II.) Now command prompt will open up, select the infected drive, for example if you want to select then type D: to go to D drive.
III.) Now you have to type this command without quotes ” dir/w/a “, it will show all the files including hidden files.
Now find in those files which you are not aware of and other viruses.
IV.) Usually you will find a file named Autorun.inf whic must be removed from your computer. To remove this virus, type this command ” attrib -h -r -s autorun.inf ” (without quotes) & press enter. Then type del autorun.inf & hit enter, follow the same for all drives.
Now the infected file is removed from your drives, if you found any .exe file after the search which is unknown to you then delete it as well.

CHECK OUT  How to copy copyrighted CD to your PC

How To Remove Shortcut Virus Using CMD prompt –
These viruses convert all your files in the pen drive or hard disk of your computer to shortcuts but they can be recovered. Just follow below steps to do so –
I.) Open Command Prompt.
II.) Go to your pen drive directory.
III.) Then type this command – “ del *.lnk ” (without quotes) and hit enter.
IV.) Then you have to type (without double quotes) ” attrib -h -r -s /s /d e:\*.* ” & press enter button.

How To Recover Your Files –
Winrar will help you recover your files. Follow the steps mentioned below –
I.) Open WinRAR application and navigate to the pen drive location or PC folder location.
II.) Copy the files and paste them where you want.
III.) Now format your pen drive.

So now you have got some files in your pen drive but they are empty ! This is because of the virus present in your pen drive. Follow the steps mentioned below to delete these viruses and recover your files –
* Open CMD prompt.
* Type the command – attrib -h -r -s /s /d x:\*.*
NOTE – in the above command in place of “x” type the drive alphabet which you have inserted to your computer.
* After typing the code press enter.

So these were some of the methods to find and remove virus using cmd prompt. Hope it helped you out.

 

    1. daniel
    2. ananthan ca

    Add Your Comment

apple music vs spotify
Apple Music vs Spotify-Deep Comparison to Let You Decide The Best

Music means world to many these days, the purest and safest...

indeed.com homepage
Indeed.com-Get a Job That Suits Your Personality and Passion

There is a huge percentage of people who shift their jobs,...

lucky patcher apk
Download Lucky Patcher APK App-Latest Lucky Patcher Android App

How about getting the authority to stop the pop up ads...

movietube app alternative
Movietube Alternatives For App and Movie Tube Website

Movietube was a highly popular movie app and website which was shut...

funny wifi names
Funny Wifi Names-Best Wifi Names For Your Network

WiFi is one of the best technologies in today’s era, nobody...

youtube converter
Ultimate YouTube Converter and Downloader For Videos and Audios

Would like to convert YouTube videos or just download them as...

ip address lookup
IP Address Lookup-Track Your IP With or Without Any Tools

There are various ways you can use to track your IP...

am i shadowbanned on reddit website
Am I Shadowbanned on Reddit? 2 Genuine Ways to Detect Ban on Reddit

Reddit is one of the most popular and useful social media...

lucky patcher apk
Download Lucky Patcher APK App-Latest Lucky Patcher Android App

How about getting the authority to stop the pop up ads...

wifi analyzer app
Highly Useful Wifi Analyzer Apps Android and iOS Users Must Install

Time has changed, earlier there used to be computers only that...

google trips app
Google Trips-Plan Your Vacation and Trips in a Better Way

With the movies showing road trips and travel bloggers posting their...

equalizer
Best Volume Booster Apps for Android With Sound Equalizer

You seem quite unsatisfied with the volume of your android phone...

apple music vs spotify
Apple Music vs Spotify-Deep Comparison to Let You Decide The Best

Music means world to many these days, the purest and safest...

indeed.com homepage
Indeed.com-Get a Job That Suits Your Personality and Passion

There is a huge percentage of people who shift their jobs,...

movietube app alternative
Movietube Alternatives For App and Movie Tube Website

Movietube was a highly popular movie app and website which was shut...

download naruto wallpaper
Awesome Naruto Wallpaper in HD For Download {High Quality}

Naruto, a very famous Japanese manga series which was originally published...