Format a Virus Infected Pen drive Using Command Prompt



This simple format trick allows you to to format a virus infected pen drive using command prompt in windows. There may be certain occasions where you cant format you pendrive by right clicking and select format. Because simply the virus script inside the pendrive do not allow such things. If you try to delete the virus file .exe like autorun.exe itself, it may return immediately because the virus program is a tricky one.


However most of the time, a pen drive format using cmd will delete the virus file permanently by means. So here's the steps to format a pendrive using command prompt window.



  • 1. First, insert your thum drive into the usb port
  • 2. Open my computer and find out the drive specification letter for your usb drive. For example, in my case it's H:
  • 3. Open command prompt ( start>>Run = "cmd" without quotes )

  • 4. Type format<space>"your drive letter" and press Enter twice  |    in my case,

    C:\Documents and Settings\Tomin>format h:

  • 5. Now the command prompt setup will verify the file system and ask you to enter a name for your drive - Volume label
  • 6. After giving a volume label, press Enter