If your computer has been infected with a virus you will notice them in this list. With a larger disk size, this list might grow you might need to spend some time in it. In terms of small disks such as Pendrive, the observation process takes less time. If you find any unusual file in this list you can either rename it or remove the virus from your system. For example, you have found an infected file call autorun.
And if you want to remove virus using cmd use this format: del[filename][extension] or del: [filename]. Both ways work perfectly.
Read-only suggests the file cannot be written on or executed. You might have noticed that sometimes files in your drive or pen drive becomes shortcut. This is a type of common virus and you can remove it from your PC using the steps below. Step 2 : Now go to the drive you want to scan for shortcut autorun. Either use [drive letter]: or use cd.. Step 3 : Now type this command to search for autorun. If windows unable to find autorun. Otherwise, proceed to the next step to remove the virus from your directory.
Step 4 : Type del autorun. Step 6 : Now open windows explorer and check whether those files are deleted or not. Earlier all you did is went to a directory and expose all the files and then try to check if you can find any virus or suspicious files. But what if you want to scan a particular folder and remove virus using cmd while making sure that it does not end up losing important files. Now open the command prompt with as administrator and propagate to the folder you want to delete :.
Tip : replace username with your current logged-in user also use your folder address that includes a virus. If you add a folder name it will force delete all the files in the folder. To delete individual files include the file name in the directory address. If you have deleted files from your computer unintentionally and want to recover those files then follow this procedure.
First, open the command prompt and type: vssadmin List shadows. It will display the list of shadow copies created along with their date. Typing this command will explore your selected drive and will load all the files including hidden and system files on your drive.
Step 5. In this window, you will notice unusual file. Rename it using this command line rename filename. Now you can identify all the viruses in your PC and USB and delete them without any help of anti-virus software. You can delete the autorun. Sign in. Forgot your password? Get help. Privacy Policy. Create an account. Edit this Article. We use cookies to make wikiHow great. By using our site, you agree to our cookie policy.
Cookie Settings. Learn why people trust wikiHow. Download Article Explore this Article parts. Tips and Warnings. Related Articles. Author Info Last Updated: March 26, Part 1. Compare it to the used space of the drive.
If the used space exceeds the total size of the data, then it is possible to recover the lost data. In other words, if the drive is showing more space consumed than the actual data inside the drive, then your lost data can be recovered. Part 2. Replace x with the drive letter and hit Enter. Delete any unnecessary files that you see such as autorun.
Evan Boehs.
0コメント