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 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' 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.
- 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.
Hi,
ReplyDeleteAll above mentioned steps very useful actionable advice to protect yourself from virus infection..!!