Agario Forum | The Online Agar.io Leading Community
[CMD] HOW TO CREATE LOTS OF FOLDERS QUICKLY! - Printable Version

+- Agario Forum | The Online Agar.io Leading Community (http://agarioforums.net)
+-- Forum: Secret (http://agarioforums.net/forumdisplay.php?fid=20)
+--- Forum: TechTalk (http://agarioforums.net/forumdisplay.php?fid=29)
+--- Thread: [CMD] HOW TO CREATE LOTS OF FOLDERS QUICKLY! (/showthread.php?tid=46654)



[CMD] HOW TO CREATE LOTS OF FOLDERS QUICKLY! - Owl - 12-22-2017

Need to make 1000+ Folders really quick for a project or simply just wanna play a prank on your friend? Well here's how to do it using a .bat file!! 

Step 1. Open up notepad 

Step 2. Add the following code 

Code:
@echo off
CD Your location here
:1
mkdir %random%%random%
:1
goto :1  

* You only need to add CD "Location here" if you want the script to make the folders in a different directory to where the .bat file is saved! * 

Step 3. Press "Save As" and find a location for your code, now give it a name and add the end of the name add ".bat" 


Step 4. Run the application! This creates lots of folders in short time, here's what It did to me after 5-10 seconds 


https://i.gyazo.com/3798d77a8e52ba1e47cbc1d024ecaf8b.png



RE: [CMD] HOW TO CREATE LOTS OF FOLDERS QUICKLY! - Squirrel - 12-22-2017

(12-22-2017, 02:15 AM)Owl Wrote: Need to make 1000+ Folders really quick for a project or simply just wanna play a prank on your friend? Well here's how to do it using a .bat file!! 

Step 1. Open up notepad 

Step 2. Add the following code 

Code:
@echo off
CD Your location here
:1
mkdir %random%%random%
:1
goto :1  

* You only need to add CD "Location here" if you want the script to make the folders in a different directory to where the .bat file is saved! * 

Step 3. Press "Save As" and find a location for your code, now give it a name and add the end of the name add ".bat" 


Step 4. Run the application! This creates lots of folders in short time, here's what It did to me after 5-10 seconds 



Ouch!!

You're just like the dude who told Unix people the 'rm -r' command! Wink

LOL... It could be a prank... but for the love oif decency, use recursion instead, and give it a way to exit! Wink

I'm pretty sure that bad things happen if you create so many folders that your FAT table runs out of space to use and your computer will no longer be able to do some pretty simple requests until it's undone. Wink.


RE: [CMD] HOW TO CREATE LOTS OF FOLDERS QUICKLY! - Shadow Fox - 12-23-2017

This must be an introduction to endless loops.


[Image: giphy.gif][Image: giphy.gif][Image: giphy.gif][Image: giphy.gif]


RE: [CMD] HOW TO CREATE LOTS OF FOLDERS QUICKLY! - Doigt - 01-23-2018

This thread reminded me of this joke I saw a few years ago: [Image: TQOORAb.png]


RE: [CMD] HOW TO CREATE LOTS OF FOLDERS QUICKLY! - Trinity - 01-23-2018

Code:
for(int i = 0; i < x; i++) // Loop x times
    File.CreateText(
        AppDomain.CurrentDomain.BaseDirectory + String.Format("{0}.txt", i), // Where to place the file and under what name
        "Hi"); // The text to place into the file


Wink


RE: [CMD] HOW TO CREATE LOTS OF FOLDERS QUICKLY! - Owl - 04-11-2018

(01-23-2018, 06:57 PM)Trinity Wrote:
Code:
for(int i = 0; i < x; i++) // Loop x times
   File.CreateText(
       AppDomain.CurrentDomain.BaseDirectory + String.Format("{0}.txt", i), // Where to place the file and under what name
       "Hi"); // The text to place into the file


Wink

Nice Coding Keep It Up!