How to remove shortcut virus using cmd?

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.

 How to Remove Shortcut Virus

Step 1: Start cmd as administrator.

Step 2: Now go to the drive you want to scan for shortcut (autorun.inf) virus. Either use [drive letter]: or use cd.. to go to your drive.

For example: go to “F” drive using

F:

And if you want to go to the root of c drive use this:

cd..

Step 3: Now type this command to search for autorun.inf virus files.

attrib -h -r -s autorun.inf

If windows unable to find autorun.inf file, then cmd will display File Not Found -autorun.inf. Otherwise, proceed to the next step to remove the virus from your directory.

Step 4: Type del autorun.inf command to delete those file.

Step 5: To delete all the shortcuts type del *.lnk command and press enter.

Step 6: Now open windows explorer and check whether those files are deleted or not.

 

Post a Comment

0 Comments