Summary: This article will take you through a couple of simple steps to remove the virus using cmd in Windows 10, 8, 7, and recover all your missing or hidden files due to virus attack using Bitwar Data Recovery Software.
The virus is a well-known term in the computer world, which can cause significant harm to your computer system by not letting it work as it is meant to be. A virus attack can jam all your essential work while infecting the data or files stored on your computer so that you can not access these files. Indeed, such attacks do not only frustrate the user but also risk the data thus, it becomes imperative to overcome this issue so that your device is safe and secure.
Table of Contents
What Is a Virus?
The virus is a malicious code that multiplies itself by copying to another program on your device while changing the way how your computer device works. A virus attack happens when someone intentionally or unintentionally spread the infection without letting the user or administrator know about it.
There are many ways in which a virus can spread in your computer such as by clicking on some link, file, browsing through a virus prone website and accessing an email, etc. it can also spread via removable storage devices such as pen drives, USB flash drives, and SD memory cards, etc.
Don’t Miss it Out: Look! The Best Ways to Recover Deleted Files by Antivirus
How Can a Virus Cause Damage to Your Computer?
Viruses can be of the varied range that behaves differently from others. A virus deviates your device to function normally to take down or remove important files, give access to hackers about your data and track someone’s habits, etc. causing an immense nuisance.
Ways to Prevent a Virus Attack
Below are some of the ways which can save you from a virus attack:
- Running an anti-virus scan regularly.
- Keep your anti-virus software updated.
- Disable the Auto-run option to avoid viruses from spreading to any media attached to your computer device.
- Always patch the operating system and applications installed in your system.
- Be very careful while clicking on any link sent via email.
- Install firewall.
- The careful download of files via the internet or email.
How to Know That A Virus attacks your System?
The following are the indications that would let you know about any virus attack.
- The computer system undergoes frequent errors, shut down and crashes.
- Erratic functioning of computers like not responding to clicks.
- Corrupted email.
- The storage memory of the device is reduced.
- Files/data missing from the computer.
- Constant noise and spinning of a computer’s hard drive.
The above stated are some essential points to be kept in mind and prevent your system from a virus attack. And those who may ever come across this concern can consider below steps to remove the virus using a Command Prompt.
Before heading on to the steps to remove a virus, Trojan, let us get familiar with some commands required to be executed in cmd or Command Prompt.
“attrib” command abbreviations
R: denotes the “Read Only” attribute, which means a file cannot be modified or written.
H: denotes a Hidden attribute.
A: File Archiving.
S: denotes a System attribute that changes the user files to system files.
I: represents that the content of a file is not indexed.
ATTRIB [+ attribute | – attribute] [pathname] [/S [/D]]
‘+ / –’: To cancel the specified attribute.
‘/S’: Searching the entire path including and subfolders.
‘/D’: Inclusion of any process folder.
‘pathname’: Location of target file/folder’s path.
Proper syntax order for ‘attrib’ command
ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [+I | -I] [drive:][path][filename] [/S [/D] [/L]].
Step by Step to Remove a Virus Using CMD
Step 1: Launch Command Prompt by going to the search box and run as an administrator.
Step 2: Once cmd opens, type D: and hit enter. (Replace D to the wanted drive letter)
Step 3: Now, type the command attrib and hit enter to execute. You will be able to see the autorun.inf virus files in the listing.
Step 4: Input the command attrib -r -a -s -h *.* and hit Enter to execute. This command will delete the read-only, system, archive, and hidden file attributes from all the files. (*- is for the files with different extensions).
Step 5: After this, type del autorun.inf command and press enter to remove the files. In case you are infected by any other virus, then replace autorun.inf with the extension of the virus your system is infected with such as .exe or .ink.
Executing these commands will help you remove viruses from your device, but there are high chances that you may end up losing your vital data due to these steps. Thus, to get your data back, go on with Bitwar Data Recovery Software, and recover all your precious data. The following are the steps to restore your lost data using Bitwar Data Recovery.
How to Recover Data After Removing the Virus Using CMD
Step 1: Open Bitwar Data Recovery software’s official website “https://www.r-datarecovery.com” and click on the download button and then install the software in your system.
Step 2: Launch the recovery tool and select the Standard Mode.
Step 3: If the Virus has hidden your partition, you can click on Lost Partition Recovery, and followed by clicking on Next.
Step 4: After this, select the partition you want to scan and then click on Next.
Step 5: Select the file types you wish to recover and press Next.
Step 6: Preview the selected data and click on Recover to start the recovery process.
Note: If the virus attack or Trojan infection causes the vital data to be deleted or hidden, you can turn to Wizard mode, and select the partition/drive to be continued.
Wrap It Up!
A virus attack can surely create a huge hassle by spoiling the functioning of your computer device. You might even hear or face such CryptoLocker Ransomware, which encrypts all of the documents and threat you to send Bitcoin to him/her to unlock, otherwise, the CryptoLocker will delete all of your documents in a specific time.
There are many ways in which you can check the normal working of your computer and prevent it from a virus attack or Ransomeware infection. There are scores of procedures in place to remove a virus from your computer however, applying those procedures may result in data loss. Therefore, we suggest using Bitwar Data Recovery software to cater for all your data recovery needs.
- 5 Ways to Fix “Error Copying File or Folder Unspecified Error”
- 4 Ways to Fix “The disk structure is corrupted and unreadable”
- [FIXED] The Volume Does Not Contain a Recognized File System
- 9 Solutions to Fix Folder Disappeared Windows 10 Problem
- 4 Proven Solutions to Force Delete a File/Folder
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?