Skip to main content

Ad

How To Remove A Virus From A Pen Drive Using Command Prompt?

   


 
To remove a virus from a pen drive using command prompt (CMD) on a Windows system, you can follow these steps:

Step 1: Insert the infected pen drive into your computer's USB port.

Step 2: Open the Command Prompt. You can do this by pressing the Windows key + R on your keyboard to open the Run dialog box, then type "cmd" and hit Enter. Alternatively, you can search for "Command Prompt" in the Start menu and click on it.

Step 3: In the Command Prompt window, navigate to the drive letter assigned to your pen drive. For example, if your pen drive is assigned the letter "E," you can type the following command and hit Enter:


Step 4: Once you're inside the pen drive's directory, type the following command to view the list of files and folders:

This command will display all the files and folders in the pen drive.

Step 5: Identify any suspicious files or folders that may be infected with the virus. Look for files with unusual names or file extensions.

Step 6: To delete a file or folder, use the "del" command followed by the file or folder name. For example, to delete a file named "virus.exe," type the following command and hit Enter:

 


Repeat this step for any other infected files or folders you want to remove.

Step 7: After deleting the infected files, you can use the following command to check if there are any hidden files or folders on the pen drive:

 


This command will remove the "hidden" and "system" attributes from all files and folders on the pen drive.

Step 8: Once you've completed these steps, you can safely remove the pen drive from your computer.

Comments

Most Popular

How To install Linux on your computer?

1. Choose a Linux distribution: There are many Linux distributions available, each with its own features and target audience. Popular choices include Ubuntu, Fedora, Debian, and Linux Mint. Research different distributions and choose the one that best suits your needs. 2. Download the Linux distribution: Visit the official website of the chosen Linux distribution and download the installation ISO file. Make sure to download the version compatible with your computer's architecture (e.g., 64-bit or 32-bit). 3. Create a bootable USB drive: You will need a USB flash drive with sufficient capacity (usually at least 4GB) to create a bootable installation media. Use a tool like Rufus (Windows) or balenaEtcher (Windows, macOS, Linux) to create a bootable USB drive from the downloaded ISO file. 4. Backup your data: Before proceeding with the installation, it's essential to back up any important data on your computer. While the installation process itself shouldn't delete your fil

How to create Cross Reference in MS Word?

Set up the cross-reference target:     1. Place your cursor where you want the cross-reference to point. This is usually the location you want the reference to appear.     2. Create a bookmark at the target location by going to the "Insert" tab in the ribbon, clicking on "Bookmark" in the "Links" group, and giving it a name. Remember the name you assigned to the bookmark.    Insert the cross-reference:     1. Place your cursor where you want the cross-reference text to appear.     2. Go to the "References" tab in the ribbon.     3. In the "Captions" group, click on "Cross-reference." A dialog box will appear.     4. In the dialog box, under "Reference type," select the type of item you want to reference (e.g., heading, bookmark, figure, table, etc.).     5. In the "Insert reference to" section, choose the desired option (e.g., heading text, page number, etc.).     6. In the "For which bookmark" se

How to Short in Microsoft Excel Worksheet?

It is very easy to "Sort" in Microsoft Excel.  To dot that- 1. .Select the range of cells or specific column that you want to apply the "sort". 2. In the "Home" tab in the Excel ribbon select "Sort & Filter" group and then click on the "Sort" button. You can go to "Sort" button from the "Data" tab of excel ribbon.   3. The Sort dialog box will have different options : "Sort by": Choose the column or columns you want to sort by from the drop-down list. If you have selected the entire data range, Excel will automatically detect the headers and display them in the drop-down list. "Sort smallest to largest": It arranges the cells depending its values from smallest to largest. "Sort largest to smallest": It arranges the cells depending its values from largest to smallest. "Custom sort": Here we can arrange our data on the basis of specific column, specific order and and sp