How to Format Hard Disk using a Notepad:

Hi friends today I will tell you how to format hard disk of your computer using a notepad.

Using batch file programming you can Format the hard disk of your computer.

Note: This tutorial is only for Educational purpose.

Step 1: Open your notepad (Go to start -> all programs -> accessories -> notepad or click windows key+r run window will open type notepad and hit enter).

Step 2: Copy below code and past it in your notepad.


HDformateStep 3: Click the save (Ctrl+S) and provide the file name with .bat (Batch File) extension.

Here I am saving my file as Harddisk.bat (Provide any name with .bat extension).

HDformat1Once if you click on save button then one batch file will be created in your system as shown below.

HDformat2If you double click on that batch file it will format hard disk of your computer.

Note: take backup of your hard disk before formatting.

You can also send this batch file to your friends through e-mail or Pendrive, once if he double clicks the file, Hard disk of his computer will be formatted.

Warning: Don’t test this in your computer, it will format hard disk of your computer. If you want to test this Install a VM Ware and test it. how2doit is not responsible for any damages done to your computer .

That’s it.

Enjoy 🙂

Thank you for visiting  If you find any mistakes help us by leaving a comment.

Don’t Miss : How to Create a Folder using Notepad.