Search

Saturday, 22 September 2012

Delete viruses from pendrives using CMD

Delete viruses from pendrives using CMD

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!

0 comments:

Post a Comment