S – the “ System” attribute modifies the selected files/folders from user files into system files. H – it represents the “ Hidden” attribute.Ī – this stands for “ Archiving” which prepares a file for archiving. Read-only suggests the file cannot be written on or executed. R – it represents the “ Read-only” attribute of a directory. ‘ pathname‘: Address where the target file or folder is located. ‘/S’: Searching the entire path that includes the subfolders. ‘attribute’: check in the attribute section. ‘+ / –’: To set or cancel the specified attribute. The parameters and switches used in this command are: Start the command prompt as administrator. To scan your computer for viruses using the command-line tool, you need to follow these steps: Once visible your next task would be deleting them from the directory. Canceling the “ hidden” attribute of viruses will make them visible inside folders. Tip: the primary purpose of the attrib command is to remove and set file attributes such as hidden, system, read-only, or archive. Then you can expose potentially hidden virus files using the attrib command in CMD.
The command lines don’t check and remove viruses instantly.You have the antivirus software installed but want to try this unconventional method to identify infected files on your system.This process of removing virus using CMD is manual but once you master it can be a great alternative to your Antivirus tool.
Is it a good idea to remove virus using CMD?Īntivirus tools are great but they also eat a lot of resources of CPU and memory while running in the background.
#Remove worm virus using cmd how to#
In this post, you will read how to remove virus using cmd without utilizing the installed antivirus software on your PC. Instead, you will need to understand the sequence of commands and apply them accordingly. It’s not a plug and plays method to scan for viruses and deleted them from your PC in one button click. Antivirus scans the system for malicious files in real-time and reports to you immediately if found such files to take action.īut there is another interesting way to remove viruses from your PC using the command prompt.
#Remove worm virus using cmd install#
Obviously, we all install antivirus software or use default windows security (in Windows OS) in our system to protect the PC against these viruses.