1Abc Directory LinkPedia Web Directory Nipao Directory education

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

SHARE:

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

        BLOGGER: 1
        1. Hi,

          All above mentioned steps very useful actionable advice to protect yourself from virus infection..!!

          ReplyDelete

        Name

        android,19,apple,2,application,10,deals,1,entertainment,13,gadgets,3,gaming,12,how-to,71,IoT,24,iphone,15,news,163,reviews,16,science,5,security,29,tech,149,top-list,29,tricks,2,Weird,2,windows,17,
        ltr
        item
        TECHAPIS- All Tech News 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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHao3SEZtjlm64yDMxC2zPZmpk23jdZBCjADLfSs393nin6Wf3phYfwheOJcuWex5qGplymqKeTEDEXr_udJQx1xivLnTGm3ptbB6GY3apQGE_1cSttmI4aTCLj45Z4eH63tLx5Bz-QJS5/s1600/How-To-Remove-Virus-From-USB-Or-Any-Drive-On-Windows+10-+Using-+CMD.png
        https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHao3SEZtjlm64yDMxC2zPZmpk23jdZBCjADLfSs393nin6Wf3phYfwheOJcuWex5qGplymqKeTEDEXr_udJQx1xivLnTGm3ptbB6GY3apQGE_1cSttmI4aTCLj45Z4eH63tLx5Bz-QJS5/s72-c/How-To-Remove-Virus-From-USB-Or-Any-Drive-On-Windows+10-+Using-+CMD.png
        TECHAPIS- All Tech News Blog
        https://techapis.blogspot.com/2017/05/how-to-remove-virus-using-cmd.html
        https://techapis.blogspot.com/
        https://techapis.blogspot.com/
        https://techapis.blogspot.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 PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network 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 Table of Content