How to remove virus without any antivirus software

  • Here we are removing the virus through the command prompt.
  • Normally when a virus infects a windows system which causes a drive opening problem, it automatically creates a file named autorun.inf in the root directory of each drive.
  • This autorun.inf file is a read only ,hidden and a system file and the folder option is also disabled by the virus.
  • This is deliberately done by the virus in order to protect itself. autorun.inf initiates all the activities that the virus performs when you try to open any drive.
  • Start –>  type Run –> type  cmd  -click on OK  button
  • image
  • Right click –> run as Administrator  this window opens up.
  • image
  • Select the drive (which is infected drive).
  • image
  • here p is the usb drive  we type p:  and press the enter key
  • type attrib -r -h -s  press enter (This command removes the Hidden, Read Only, System and Archive attributes over any file)
    please note the spacing: no space between the dash and the letter & a space after the r h and s
  • Restart your system and your trouble will be fixed.
  • if there’s an autorun.inf file rename it
                       (rename filename.extension newfilename).
  • Delete the harmful files
                 *you can also delete the harmful files using command prompt
        ( type del filename).
  • How to remove short cut virus
  • Capture6
  • Type in Command prompt :  attrib -h -r -s /s /d <Your USB drive letter>:\*.*
  • (See <Your USB drive letter> from My computer and then type it For ex, if your drive letter is “J” then the command is like: ” attrib -h -r -s /s /d J:\*.* “
  • press enter.’
  • Now your Shortcut files again convert to normal files. Delete unknown files from your storage aftercommand process completes.
  • Capture7
  • Now your Shortcut files again convert to normal files. Delete unknown files from your storage aftercommand process completes.
  • removing shortcut virus copy your USB data to your computer
  • Format the USB storage
  • Then Reagan the data copy.

Leave a comment