DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Bulk Creating Folders  (Read 9,215 times)

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Bulk Creating Folders
« on: February 16, 2011, 03:07 PM »
Got a question...

I had to create a bunch of folders. (64 actually) And I looked for something to help me do it, but didn't turn up anything useful. (I found some OSS, but it required compiling.)

Does anyone ever need to create a bunch of folders besides me?

(I've already written the software --- just checking if I should polish it for others.)

It's just such a simple little thing, but who in their right mind wants to manually create 50 folders or whatever. I sure as heck don't.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: Bulk Creating Folders
« Reply #1 on: February 16, 2011, 03:25 PM »
Wasn't there a CSnack creating directories listed in a file? (no time to check right now)
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Bulk Creating Folders
« Reply #2 on: February 16, 2011, 03:29 PM »
Wasn't there a CSnack creating directories listed in a file? (no time to check right now)

Not sure. I quickly checked Google, and didn't see anything. (Or nothing that I'd click on anyways -- too many really poor results & malware sites in Google lately.)
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Bulk Creating Folders
« Reply #3 on: February 16, 2011, 03:36 PM »
I think there were actually a few coding snacks that bulk create folders in different ways..
There was definitely one to do as Ath says, make batch folders based on a text file.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Bulk Creating Folders
« Reply #4 on: February 16, 2011, 03:44 PM »
Maybe my Text 2 Folders?  Admittedly, it could use some fleshing out of features.

AbteriX

  • Member #520
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,150
Re: Bulk Creating Folders
« Reply #5 on: February 16, 2011, 08:28 PM »
I had to create a bunch of folders. (64 actually) And I looked for something to help me do it,
My file managers help me here...


...or just an batch:

If you have an list of folder names:
Code: (generic)
@ECHO OFF
MD "X:\path\to\Folder01"
MD "X:\path\to\Folder30"
MD "X:\path\to\Folder64"


or if you just want to create some serialized folders:
Code: (generic)
@ECHO OFF
SET myFolderName=new_Folder
set /p "myAmount=How many folders do you want to create?"
for /l %%i in (1,1,%myAmount%) do (MD %myFolderName%_%%i >NUL)
new_Folder_1
new_Folder_2
new_Folder_3

And BTW this is for files:
Code: (generic)
@ECHO OFF
SET myFileName=new_File
set /p "myAmount=How many files do you want to create?"
for /l %%i in (1,1,%myAmount%) do (copy nul %myFileName%_%%i.txt >NUL)
new_File_1.txt
new_File_2.txt
new_File_3.txt
Greetings, Stefan.

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 3,217
Re: Bulk Creating Folders
« Reply #6 on: February 16, 2011, 08:47 PM »
...or just an batch

+1  :up:

Batch files are a free and convenient way to do many jobs.  But, it's only us older hands who know how to use them?  :o

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Bulk Creating Folders
« Reply #7 on: February 17, 2011, 09:24 AM »
Hmmm...

Looks like 2 things:

1. There's a demand for it.
2. I reinvented the wheel. :D

I never thought to check the code snacks. I just Googled, didn't see anything interesting, so did it myself. (I could see that I would need to do the same thing again.)
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Paul Keith

  • Member
  • Joined in 2008
  • **
  • Posts: 1,989
Re: Bulk Creating Folders
« Reply #8 on: February 17, 2011, 09:50 AM »
I just use the hotkeys in file managers. (ctrl+shift+n in nautilus and F8 in Ultra Explorer)

Now if we're talking about bulk creating txt or rtf files all with different names - man...I haven't found a hotkey or program for that. (especially since batch text file makers need to have predefined names in place)
<reserve space for the day DC can auto-generate your signature from your personal PopUp Wisdom quotes>

AbteriX

  • Member #520
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,150
Re: Bulk Creating Folders
« Reply #9 on: February 17, 2011, 04:14 PM »

Now if we're talking about bulk creating txt or rtf files all with different names - man...I haven't found

Just an info, maybe someone like to know?:

Quote
FileGen Free
Copyright © 2009 HazteK Software. All Rights Reserved.
http://www.haztek-software.com
HazteK Software - The home of StorURL - (2010-03-11).png


"Create Folders" utility"
http://www.autohotkey.com/forum/viewtopic.php?t=6922
Create Folders utility - (2008-11-10).png


I have also often the need to create files or folders and tried do code something my own.
At last they work good enough for me... but i am interested in an feature rich, well coded app,... if anyone knows one or like to code...
i have the ideas for features and can make an GUI layout,... but doesn't have the time or skill to code this so it runs fast.

AHK_FileCreater_v09.png
XY_BatchNewItemsSerie04.png
Greetings, Stefan.

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Bulk Creating Folders
« Reply #10 on: February 17, 2011, 10:24 PM »
This is what I came up with:

[attachimg=#]

Still needs some tweaks in a few areas.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Tuxman

  • OMG not him again!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,522
    • Participated in NANY Challenge Seven Times
Re: Bulk Creating Folders
« Reply #11 on: February 21, 2011, 05:34 PM »
BTW ac'tivAid can also do that :)
I bet when Cheetahs race and one of them cheats, the other one goes "Man, you're such a Cheetah!" and they laugh & eat a zebra or whatever.

Original address: https://www.donationcoder.com/forum/index.php?topic=25730.0