loading

In this instructable I will show you how to make an batch file that adds more than 300000 text documents on your dekstop or wherever you save it.

Step 1: OPEN NOTEPAD

You first have to open notepad

Step 2: THE CODE

Feel free to copy and paste the code into your new notepad document

@echo off

:start

echo HI >>%random%.txt

goto start

Step 3: SAVE THE CODE

Click on Save as and save it as whatever you want but put .bat after it that is needed or it wont work!!!

Step 4: RUN THE CODE AND THIS IS WHAT HAPPENS:

It makes an unlimited amount of random folders with the text hi in it.(unless you change the hi in the code for something else.)

<p>&quot;It makes an unlimited amount of random folders&quot;<br>* text documents.</p><p>Unlimited - max 32767 to be precise. That is; IF it doesn't stop due to file already exist (unsure if it will do so; haven't tried).</p><p>Still - annoying prank, but easily fixed. Here is how:</p><p>@echo off<br>del *.txt</p><p>The above codes are simply written in notepad and saved with the *.bat extension. Make sure you put it in the correct folder and that you DO NOT have any important *.txt files in that folder (they will be deleted without any warning when program is run).</p><p><br>To author of instructable - best bat prank I've seen so far. Poor soul if anyone tries to manually delete all those on their desktop and they have the auto arrange turned on.</p>
<p>If you really like it please vote it for the code contest!</p>
<p>You need a little more to impress me ;) If you, like me, do enjoy batch then give Visual Studio a try - it's fun (I recently made my first small program)!</p><p>Another note on this instructable - I would suggest using &gt;&gt; instead for two reasons:<br>1) If a file exists then it it will simply add another &quot;Hi&quot; in it - like so:<br>Hi<br>Hi<br><br>and no error message will ever be displayed.<br><br>2) If the user already have a file called, say, &quot;1337.txt&quot; then instead of overwriting whatever (important?) notes someone may have have inside it it will rather just add another &quot;Hi&quot; at an own line in the end of the file.</p>
<p>Thanks man!</p>

About This Instructable

2,296views

6favorites

License:

More by CoenW1:Hacking websites with sqlmap and kali linux Hack a computer on your network with kali linux FUNNY BATCH PRANK 
Add instructable to: