Dec 10, 2010

Delete viruses from pendrives using CMD


Mostly our pc get attacked by viruses from pendrives, so here is way to protect your pendrive and computer from viruses. Just follow these steps and delete viruses from pendrive without affecting your pc.

Here are steps:

1). Connect your pendrive and do not open it by using autorun.

2). Open Run and type cmd and press enter.

3). In the Command Prompt, Type the drive letter of your pendrive(you can check it from my computer) and then press enter.


4). Type dir/w/o/a/p and press Enter.
It will display list of files.

5). Now in that list search for virus files like:


Autorun.inf

New Folder.exe

Bha.vbs

Iexplore.vbs

Info.exe

New_Folder.exe

Ravmon.exe

RVHost.exe

any other files with .exe Extension . *

6). If it contains any of the files above file then type attrib -h -r -s -a *.* and press Enter.

7). Delete each of that file using delete Command
del filename (For exaple: del autorun.inf )

Its done!
Now you can scan your pendrive with any good antivirus and then can open it without affecting your system.

Labels: , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home