How To Make Viruses Using Command Prompt

How do I remove various viruses using CMD (Command Prompt)?

If you have a problem with any of the viruses, we are here to help. In most cases, the antivirus software installed on your computer will remove the virus. If the problem persists, here are the methods to remove the entire virus manually and easily.

↑ Steps to Remove Viruses Using CMD:

Step 1: Open the Command Prompt:

Just press " Winkey + R. ”And tap cmd in the Run dialog box that appears.

Step 2: Proceed to the Drive:

Let's say the virus is in the C drive. If you are in a different directory on the C drive, e.g. C: user "Then use the DOS command" CD.. "Until you get" C:> ”.

Step 3: Enter the code:

Now just type " attrib -h -r -s autorun.inf ”And hit enter. If there is no virus there, it will be displayed. " File not found -autorun.inf "If there is a virus, just type" del autorun.inf ”And hit enter. Follow the same procedure for all other drives and finally scan your computer for viruses.

↑ How do I remove Shortcut Virus using Command Prompt?

These are the viruses that convert all the data on your flash drives or hard drives into shortcuts. Just follow the steps given below to remove all flash drive shortcut virus and restore your files.

Steps to remove Shortcut Virus from Pendrive:

Step 1 : Open command prompt:

Just press " Winkey + R. ”And tap cmd in the Run dialog box that appears.

Step 2 : Type in the code:

Change to your flash drive directory and just enter the following command. " del * .lnk ”And then press Enter. Now just type " attrib -h -r -s / s / d e: *. * ”And hit enter.

Note:: If you're having trouble entering the code, just enable copy-paste mode in your command prompt and just paste it.

↑ To restore or get the files back:

You can get your files with WinRAR.

  • Open WINRAR.
  • Navigate to the storage location of the USB stick or the storage location of the PC folder.
  • Copy and paste the files wherever you want.
  • Format your USB stick.

↑ How to remove Empty Folder Virus using Command Prompt

The flash drive may contain some files, but they appear empty! This is due to a virus known as an empty folder virus. Follow the steps below to remove virus folders and restore your files.

Steps to Remove Empty Folder Virus:

Step 1 : Open command prompt:

Just press " Winkey + R. ”And tap cmd in the Run dialog box that appears.

Step 2 : Type in the code:

Enter the following command line. " attrib -h -r -s / s / d x :: * *. * * “.

Here, the "x" element should be replaced with the hard drive letter assigned to the flash drive attached to the computer.

Let's say the flash drive shows the alphabet drive as "M", then enter the following command: " attrib -h -r -s / s / d m :: * *. * * ”And hit enter.