USB Flash Drive is the removable drive that many people use to keep files for some reasons every day, especially documents for work but those documents may be damaged by any virus, spam, malware so USB Flash User need to prevent this happen to his/her flash drive through many ways such as Antivirus or using command. Antivirus is the important way to destroy those virus but in case a computer don't have antivirus installed, we need to clean virus from USB Drive manually.
The following is the way to get ride of the virus from USB Drive by command:
1. Press Windows Key + R > type "cmd" in Run > press Enter Key
2. Identify your USB Flash Drive
C:
D:
E:
F:
.
.
.
In this guide, my flash drive is F.
3. In command prompt type "F:" > Press Enter
4. type attrib -s -h *.* /s /d > press Enter
5. type dir. dir is the command to show all folders, files... in the usb flash drive.
6. After the above command, the files list in USB Flash and find the file with extension ” .exe ” that look strange from the other execute file that you don't know and need to rename. Exampe, you found
folder.exe so you need to rename this file to the new name; you can rename to any name you want.
But for my usb flash, I want to change the autorun.exe to Newfile.
type "rename autorun.exe Newfile" > Press Enter
Now the file is chaned to Newfile
Note: try to find all files or folders that you think they are strange with extension .exe; you can change their name as I shown above and then go to delete them so that you flash drive does not have virus.
Now open my computer, then open (as Windows Explorer, not double click on Flash Drive) USB Flash Drive because double click on Flash Drive directly allow autorun virus excute automatically in your computer.
Note: If you are sure that file is the virus, you can use command to delete it. command for deleting file is del [filename]. Example: del virus.exe
If you have question, please leave as comment.
No comments:
Post a Comment