How To Remove Virus From USB Or Any Drive On Windows 10 [Using CMD]

How to remove Virus from a USB drive or any other system drives using CMD and without using antivirus. Follow this simple steps to remove any virus easily.

Remove Virus from USB Or Any Drive on Windows 10 Using CMD

Remove Virus Using CMD

To remove virus in Windows7/8/10, we will use an 'attrib' command.
Using this 'attrib' command, we will easily change the attributes{Characteristics} assigned to a file in Ur system/PC and thus recover our file from the virus.

What Attrib command stands for?

attrib command

'attrib' is a command, in DOS, OS/2 and Microsoft Windows. 
The function of attrib is to set & to remove file attributes in commands. 
These attributes are used by a wide variety of software programs to protect and classify files and also contains 3 various types as follow. 
  • Archive Attribute: - The archive attribute is used by various backup and file copy programs as a hint as to whether a file needs to be backed up. 
  • Hidden Attribute: - The hidden attribute makes affected files invisible in many programs, although a variety of software, especially software designed for listing, viewing, and searching files, allows hidden files to be made visible, often with a notation that they have been designated as hidden.
  • System Attribute: - The system attribute is used to designate certain operating system files and affects the operation of most software less than the other attributes.

Remove Virus Using CMD from USB/ any Drive on Windows 7/8/10[Steps]:

  • Run command prompt as an administrator, Type CMD in the run(Click Start menu), it will display a command prompt as below. 
cmd

  • Switch to the drive in which virus file you want to delete.
  •  type "attrib" and press enter. This command will list out all the files inside the current drive and you can clearly see your virus file listed below.
  • To remove Virus using CMD, type into your command prompt attrib -r -a -s -h *.* and press Enter. This will remove the Read Only, Archive, System and hidden file attribute from all the files.
    • R- is for removing the read-only files.
    • A- is for removing the archive file.
    • S- is for removing the system file.
    • H- is for removing the hidden file.
    • *.* for all the files with all different types of file extensions.
    • To remove other viruses with extensions such as ‘.ink’, ‘.exe’, just type Del *.ink or Del *.exe respectively to delete those suspicious files.

I hope this would have been informative for you. If you know some other tricks, let us know in the comments below.

        COMMENTS

        Name

        android,32,apple,11,application,42,baahubali2,3,billgates,1,car,1,entertainment,3,facebook,7,google,26,HBO,2,how-to,26,internet,92,iphone,3,iphone 4S,1,iphone 8,1,jio,3,Microsoft,2,news,45,nokia,4,prabhas,4,reviews,11,samsung,4,science,12,security,23,sony,2,sports,1,tech,113,telegram,1,top-list,9,vpn,1,whatsapp,4,windows10,5,youtube,1,
        ltr
        item
        TechApis | All Tech Blog: How To Remove Virus From USB Or Any Drive On Windows 10 [Using CMD]
        How To Remove Virus From USB Or Any Drive On Windows 10 [Using CMD]
        How to remove Virus from a USB drive or any other system drives using CMD and without using antivirus. Follow this simple steps to remove any virus easily.
        https://2.bp.blogspot.com/-K3D-awf2A40/WSba0-VLxKI/AAAAAAAAGbE/pYX94MQIKYco2F4GlA5N-BvNaCMPXqB6wCLcB/s1600/How-To-Remove-Virus-From-USB-Or-Any-Drive-On-Windows%2B10-%2BUsing-%2BCMD.png
        https://2.bp.blogspot.com/-K3D-awf2A40/WSba0-VLxKI/AAAAAAAAGbE/pYX94MQIKYco2F4GlA5N-BvNaCMPXqB6wCLcB/s72-c/How-To-Remove-Virus-From-USB-Or-Any-Drive-On-Windows%2B10-%2BUsing-%2BCMD.png
        TechApis | All Tech Blog
        http://www.techapis.com/2017/05/how-to-remove-virus-using-cmd.html
        http://www.techapis.com/
        http://www.techapis.com/
        http://www.techapis.com/2017/05/how-to-remove-virus-using-cmd.html
        true
        593753531860090012
        UTF-8
        Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy