topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 12, 2024, 7:26 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Bulk Creating Folders  (Read 7167 times)

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Bulk Creating Folders
« on: February 16, 2011, 09:07 AM »
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,629
    • View Profile
    • Donate to Member
Re: Bulk Creating Folders
« Reply #1 on: February 16, 2011, 09:25 AM »
Wasn't there a CSnack creating directories listed in a file? (no time to check right now)

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: Bulk Creating Folders
« Reply #2 on: February 16, 2011, 09:29 AM »
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,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Bulk Creating Folders
« Reply #3 on: February 16, 2011, 09:36 AM »
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

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: Bulk Creating Folders
« Reply #4 on: February 16, 2011, 09:44 AM »
Maybe my Text 2 Folders?  Admittedly, it could use some fleshing out of features.

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
Re: Bulk Creating Folders
« Reply #5 on: February 16, 2011, 02: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: Text [Select]
  1. @ECHO OFF
  2. MD "X:\path\to\Folder01"
  3. MD "X:\path\to\Folder30"
  4. MD "X:\path\to\Folder64"


or if you just want to create some serialized folders:
Code: Text [Select]
  1. @ECHO OFF
  2. SET myFolderName=new_Folder
  3. set /p "myAmount=How many folders do you want to create?"
  4. 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: Text [Select]
  1. @ECHO OFF
  2. SET myFileName=new_File
  3. set /p "myAmount=How many files do you want to create?"
  4. 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

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,205
    • View Profile
    • Donate to Member
Re: Bulk Creating Folders
« Reply #6 on: February 16, 2011, 02: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

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: Bulk Creating Folders
« Reply #7 on: February 17, 2011, 03: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
    • View Profile
    • Donate to Member
Re: Bulk Creating Folders
« Reply #8 on: February 17, 2011, 03: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)

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
Re: Bulk Creating Folders
« Reply #9 on: February 17, 2011, 10:14 AM »

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?:

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


 "Create Folders" utility"
http://www.autohotke...viewtopic.php?t=6922
Create Folders utility - (2008-11-10).pngBulk Creating Folders


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.pngBulk Creating Folders
XY_BatchNewItemsSerie04.pngBulk Creating Folders

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: Bulk Creating Folders
« Reply #10 on: February 17, 2011, 04:24 PM »
This is what I came up with:

Screenshot - 2011-02-18 , 9_22_37 AM.png

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

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,508
    • View Profile
    • Donate to Member
Re: Bulk Creating Folders
« Reply #11 on: February 21, 2011, 11:34 AM »
BTW ac'tivAid can also do that :)