ⓘ Optimized 16 hours ago
https://www.easeus.com/resource/use-cmd-remove-virus-windows-10.html
> How to > Resource > How to Use CMD to Remove Virus from Any Drive in Windows 10
How to Use CMD to Remove Virus from Any Drive in Windows 10
Posted by Jean to Resource 2016-07-08
Summary
This guide is all about how to use CMD to remove virus from USB drive, SD card, pen drive and more on a Windows 10 computer. All command lines are almost covered, it's worth a try for any virus removal. Don't forget to download EaseUS data recovery software if virus has deleted or hidden files.
Know what damage a virus could do to you
We loathe virus, undoubtedly. Do you know how viruses can damage your computer exactly? There are many types of viruses, and they behave in many differentiated ways. To sum up, a computer virus is simply a type of program that causes your computer to act in an undesirable way. It can be dangerous, to drag your computer down, erase very important files, or gives hackers access to your personal information...
Viruses are nuisance, unfortunately, it seems unlikely to avoid it. Some viruses like Locky virus and CryptoLocker, also known as ransomware, delete computer files, encrypt them, even change the file extension to .locky or .encypt, while some virus hide files, making users find nowhere to unhide them. If you happen to be a victim who's looking for .locky file recovery and .crypt file recovery, then click the links.
General knowledge about commands
In this page, we're going to offer you solutions to remove viruses from your USB drive, memory card, in fact, any drive in a Windows 10 computer using CMD. In order to remove a virus using CMD, we will use a famous CMD command called 'attrib' command. So first, we'd better have some understanding about the commands we're supposed to use.
Here are the basic attributes of the 'attrib' command which we will use later:
R – R represents the "Read-only" attribute of a file or folder. Read-only means the file cannot be written or executed.
H – H stands for the "Hidden" attribute.
A – Similarily, A stands for "Archiving" which prepares a file for archiving.
S – S attribute changes the selected files or folders into a system file from a user file by assigning the "System" attribute to that particular file.
"attrib" Syntax:
ATTRIB [+ attribute | – attribute] [pathname] [/S [/D]]
In the above command, let’s see what the different parameters and switches are:
'+ / –': To enact or to cancel the specified attribute.
'attribute': As explained above.
'/S': Searching throughout the entire path including subfolders.
'/D': Include any process folder.
'pathname': Path where the target file or folder is located.
Here is the proper syntax for attrib command:
ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [+I | -I] [drive:][path][filename] [/S [/D] [/L]]
How to remove/delete virus using CMD in Windows 10/8.1/8/7
Just give you an example. I am going to transfer an 'autorun.inf' virus from my USB drive to my D: drive and delete that virus from my D: drive.
Step 1. Open Command Prompt from search and run as an administrator.
Step 2. Type D: and press Enter.
Step 3. Type attrib and press Enter. You'll see autorun.inf virus listed.
Step 4. 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. (*.* for all the files with all different types of file extensions).
Step 5. Type del autorun.inf and enter, to delete the files.
More tips for virus removal in Windows 10
Don't forget data recovery process if the virus deletes, hides your important files on USB and other drives. EaseUS file recovery software does well in virus file recovery in simple three steps. Using commands can only help remove the virus but can do nothing to restore the damaged and lost files. Get hurry to bring disappeared files back by yourself.
Learn from the 3-step file recovery in the video guide.
Related Articles - ALSO ON EaseUS SOFTWARE
Free Get EaseUS Data Recovery Wizard Professional 9.9/10.5 Torrent
2016-02-01 16:41:39
Tracy King - This article tells how to free get EaseUS Data Recovery Wizard Professional 9.9/10.5 torrent for free and restore lost d…
PNY Recovery Tool: Free Recover Data from 4/8/16/32/64GB PNY SD Card
2016-06-07 10:42:17
Jean - Download the best free PNY micro SD card recovery tool to recover data from 4/8/16/32/64GB PNY memory card & PNY flash d…
Repair Frequent Partition Error
2016-11-29 11:19:19
Daisy - Partition Table Doctor can repair invalid partition table, Repair frequent FAT32, NTFS Partition Error, Fix disk boot fa…
2016-11-29 13:40:18
Daisy - Partition Table Doctor is the only real partition recovery software, which is used to recover partition table or fix boo…
Related Products
For Windows Users
For Mac Users
Top 10 Hot Articles
Recover Files from Virus Infected Hard Drive, Memory Card and USB Drive
Free SD Card Recovery Software Recovers Deleted/Lost Files
How to Recover Files Deleted from Recycle Bin After Empty
How to Fix/Repair Damaged SD Card and Recover Data
Deleted Data Recovery from Emptied Trash Bin on Mac OS X
Free USB Flash Drive Recovery Software to Undelete Files
How to Recover Deleted Files & Folders from Hard Drive
Memory Card Data Recovery Software Free Download
2 Ways to Recover Permanently Deleted Files/Folder in Windows 10/8/7/XP/Vista
How Do I Recover Files from Formatted Hard Drive?
Editors' Pick
Deleted File Recovery Solution to Retrieve Lost Data
MAC Disk Data Recovery Solution
Partition Recovery Solution to Get Data Back
File Recovery Solution to Recover All Files
Support
EaseUS Solution
Discover EaseUS
User Guide
United States (English)
Follow EaseUS: facebooktwittergoogleyoutube
Copyright © 2004 - 2017 EaseUS. ALL RIGHTS RESERVED.
Privacy Policy | License | Terms & Conditions | Uninstall | Resource | Data Recovery Solution | iPhone Recovery | Android Recovery
EaseUS Data Recovery Wizard
The program you want to try is for desktops. We will email the trial link to you right now.
Comments
Post a Comment