HOW TO REMOVE VIRUS FROM PC WITH CMD

Each file and folder have the following attributes:



1).  Archive A

2).  Read Only R

3).  Hidden H

4).  System S

-(minus) sign before an attribute it means removing attributes and +(plus) sign mean giving attributes to the file or folder.

example ) attrib -r -a -s -h file.txt  this will remove all attributes from file.txt  and attrib +r +a +s +h file.txt  will give all attributes to file.txt .
If pen drive or other hard drive is infected by virus ,Command prompt is the best option.Follow the steps given below.

1).  Go To The Command Prompt By Start>All Programs>Accessories>Command Prompt Or Press Windows Key+R And Enter Cmd .

2).  Go To The Drive Where You Want To Delete Virus Example Write D: To Go To D Drive .

 

3).  Type “Attrib -R -S -H *.* /S /D” Without Quotations  And Press Enter .

 

4)Press Dir /A .

 

5).  Delete All The .Inf, .Exe , .Dll, .Log Extension File If They Are Not Your Files By Using Dos Del Command .

 

Example:

del autorun.inf

if any file is not deleting rename that file by rename command

Example:  rename dst.exe ms.bak this will rename dst.exe to ms.bak

Comments

Popular Posts