Wednesday, 2 November 2016

How To Remove Virus From USB Or Any Drive Using CMD

Some of the well-known examples of the above kinds of the viruses are:
  • Autorun.inf
  • Ravmon.exe
  • New Folder.exe
  • svchost.exe



remove a virus using cmd, we will use a famous cmd command called ‘attrib‘ command.

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 and,
  • 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.


  • ############# follow these steps ############



  • Run command prompt as an administrator
  • Select drive which you want to drive to remove viruses and press enter.
  • type attrib and press enter. 
  • attrib -r -a -s -h *.* and press Enter.
  • Done.



No comments:

Post a Comment

General PC Tips

  Adjust any setting on your PC with the Windows “God Mode” folder, which is a centralized Control Panel for all the OS settings. Access thi...