Home > How To > How To Create ‘Folder Bomb’ – Create Upto 10,000 Folders Within Few Seconds

How To Create ‘Folder Bomb’ – Create Upto 10,000 Folders Within Few Seconds

You must have tried or heard about ‘Zip Bomb‘- A zip file when extracted, takes tons of Gigabytes of space. Here is another one which is called ‘Folder Bomb‘. This may be considered as a Virus, but it is not. This is a simple Batch file that creates thousands of folders within seconds and is harmless for your computer. But it can hang, low memory CPUs. As mentioned earlier, this Folder Bomb can create thousands of folders within seconds, so you can consider it as a bomb. This Folder Bomb can be created by simple batch programming, or you can say, simple 4-line code. This tutorial shows you how to create a Folder Bomb using simple batch programming.

We will not need any software applications for doing this, only thing that we need for this is Notepad. Using simple coding and saving the file as a Batch file, we will create a Folder Bomb.

How To Create ‘Folder Bomb’ – Create Upto Ten Thousands Folders Within Few Seconds?

Step 1

First of all we need to open Notepad. You can open it from Start Menu or alternatively, press Windows Key + R to launch RUN utility, then type “notepad” and press Enter.

This will open Notepad.

Step 2

Now, you need to type simple code in Notepad. You can select and copy the code from below-

@echo off
:top
md %random%
goto top

Save this file as “Folder Bomb.bat“. Save this file to desktop so that you can find it easily.

Step 3

Now, you will have a batch file named as Folder Bomb.

Copy this file to desired folder, where you want to create folders. You can also run this file on desktop, but running this file will fill your desktop with thousands of folders. It is better to test this file in some other folder. I have copied it to a folder named Test.

Step 4

Time to test this Folder Bomb. Double-click Folder Bomb.bat, command prompt will appear and lots of folders will be created.

To stop creating folders, close command prompt. Now, you can see how many folders have bee created so far-

You see, around 10 thousands folders have been created within few seconds. You can delete that Test folder to delete all the folders together.

You can try this on your own PC. Just make sure you don’t run Folder Bomb.bat file on desktop, otherwise your desktop will be filled with lots of folders. You should also not try this on Low configuration PCs as it will make them hang. Enjoy, have fun!

4 comments

  1. With %random% you get repeats and once you get up into higher volume of folders it dilutes new ones being made. I used a variable in this code to make it to where each folder name is numerically increased by 1, therefore always creating the same number of new folders even when in the millions.
    ———————————————————————————–
    @echo off
    set var1=0
    md %userprofile%\Desktop\TestFile
    :loop
    set /a var1=%var1%+1

    md %userprofile%\Desktop\TestFile\%var1%

    goto :loop

  2. The first article I read never instructed me not to create it in my desktop. Now whenever I restart, boot, log off my desktop(wXP) its always bringing out thousands of folders. Even after deleting them. And I’ve deleted the (.bat) stuff. It still continues. Pls what can I du

    • It’s easy to delete all those folders.
      First, open “My Computer“, then click on “Local Disk C:
      Now, click on “Documents and settings” then click on folder with your usename.
      In this folder you will see a folder named as “Desktop“, open this folder.

      This folder will show you all the folders you have on your desktop.
      Select All and delete. You can restore your desktop icons using desktop properties.
      REMEMBER:
      Don’t delete content of “Desktop” folder permanently. So that you can find your important files in “Recycle Bin” and restore them.

      Hope this helps.

Leave a Reply

Your email address will not be published. Required fields are marked *