How to Format USB Flash Drive from Command Prompt
- Step 1: Type cmd in the search box, then you can get the best match called Command Prompt.
- Step 2: On the Command Prompt window, type diskpart and press "Enter".
- Step 3: Type list disk and press "Enter".
- Step 4: Now type select disk 2 and press "Enter".
- Step 5: Type clean.
Considering this, how can I clean my pen drive?
How to Permanently Delete Existing Files from USB on PC
- Connect the USB drive to your computer.
- Open the USB flash drive in File Explorer and select the existing files which you want to delete.
- Right-click on them and select "Delete".
Furthermore, how can I remove shortcut virus from my pendrive? To remove shortcut virus from pen drive/USB drive:
- Connect your external hard drive to PC and right-click on "Start", select "Search".
- Type: Command Prompt in the Search box and click Command Prompt to bring it up.
- Type: E: and hit Enter.
- Type: del *.
- Type: attrib -h - r -s /s /d E:*.
Subsequently, one may also ask, how can I remove virus using cmd?
How to Remove Virus Using CMD
- Type cmd in the search bar, right-click "Command Prompt" and choose "Run as an administrator".
- Type F: and press "Enter".
- Type attrib -s -h -r /s /d *.
- Type dir and hit "Enter".
- For your information, a virus name may contain words like "autorun" and with ".
How can I remove virus from my USB?
How to Get Rid of a Virus on Your USB Devices
- Virus Removal Steps.
- Step 1: Plug the USB into a Computer.
- Step 2: Run the Command Prompt.
- Step 3: Find the Drive in the Command Prompt.
- Step 4: Find Out What the Virus is.
- Step 5: Disable the Infected Files.
- Step 6: Delete the Files.
- Step 7: Scan the USB with an Anti-Virus.