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
Post a Comment