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

Last post Author Topic: DONE: make folder set out of a txt file  (Read 169,261 times)

reddie247

  • Participant
  • Joined in 2009
  • *
  • Posts: 2
DONE: make folder set out of a txt file
« on: March 12, 2009, 12:00 PM »
I'm a photographer an need to make a tree of folders with names of customers. I have a customer list in an .xls or .txt file, can this be done automatically so it saves me much time. can someone help me, i just downloaded autohotkey or is there an other way to do this.

Thanx a bunch
Edwin From www.Medsofoto.nl

scancode

  • I will eat Cody someday.
  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 641
    • Cody Award
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Furry Fandom Badge - Furry Fandom
    • DJ Badge - DJ
Re: DONE: make folder set out of a txt file
« Reply #1 on: March 12, 2009, 12:18 PM »
I'm a photographer an need to make a tree of folders with names of customers. I have a customer list in an .xls or .txt file, can this be done automatically so it saves me much time. can someone help me, i just downloaded autohotkey or is there an other way to do this.

Thanx a bunch
Edwin From www.Medsofoto.nl

Hello there.
Let's say you have a file called clients.txt with the following contents

Albert\Birthday
Albert\Wedding
John\Daughter\Birthday
John\Sister\Wedding
Martin
Michael
John Doe

the console command

for /f "delims=" %t IN (clients.txt) do mkdir "%t"

will create the following folder structure, without needing an external program

asdasd.PNG

Have fun, and welcome to the forums!

scancode

  • I will eat Cody someday.
  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 641
    • Cody Award
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Furry Fandom Badge - Furry Fandom
    • DJ Badge - DJ
Re: DONE: make folder set out of a txt file
« Reply #2 on: March 12, 2009, 12:25 PM »
Oh, in case the command line scares you, here's a little batch file.
Just drop it where your clients.txt file lays, and double click it.

make_clients.zip (276 B)

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: DONE: make folder set out of a txt file
« Reply #3 on: March 12, 2009, 12:53 PM »
Slick batch command, scancode.  Nice.

reddie247, if the commandline isn't your thing, I've whipped together an AHK script with a GUI if you're interested.
[attachthumb=#]
« Last Edit: March 12, 2009, 01:02 PM by skwire »

reddie247

  • Participant
  • Joined in 2009
  • *
  • Posts: 2
Re: DONE: make folder set out of a txt file
« Reply #4 on: March 14, 2009, 11:28 PM »
thanx scancode it worked just fine, just had to replace all tabs for spaces

adrienne

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 4
Re: DONE: make folder set out of a txt file
« Reply #5 on: May 18, 2009, 06:38 PM »
Skwire, I'd be very interested in the AHK script, can you post it?

Thanks!

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: DONE: make folder set out of a txt file
« Reply #6 on: May 18, 2009, 07:52 PM »
Skwire, I'd be very interested in the AHK script, can you post it?

Sure: Text 2 Folders
« Last Edit: November 18, 2009, 09:35 AM by skwire »

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: DONE: make folder set out of a txt file
« Reply #7 on: March 07, 2010, 12:21 AM »
Website | Download
v1.0.3 - 2010-03-06
   ! Fixed some 120 DPI graphical issues.  (Thanks, TT1)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: DONE: make folder set out of a txt file
« Reply #8 on: June 30, 2010, 02:43 PM »
I use a similar program to create folders and subfolders inside a folder.
The script from Skwire is splendid and may be improved to the eleventh desire. Simply controlling an historial of the last text files and the last root folders used with a dropdownlist for the two options controlled by an ini file.
Very useful to organize matters or incidents according to patterns in the text files.

And may be improved with the possibility to create folders and subfolders. Two levels is enough. And a new window in the gui main windows of the program.

:P

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: DONE: make folder set out of a txt file
« Reply #9 on: June 30, 2010, 03:00 PM »
I use a similar program to create folders and subfolders inside a folder.
The script from Skwire is splendid and may be improved to the eleventh desire. Simply controlling an historial of the last text files and the last root folders used with a dropdownlist for the two options controlled by an ini file.
Very useful to organize matters or incidents according to patterns in the text files.

I'll consider adding this.

And may be improved with the possibility to create folders and subfolders. Two levels is enough.

You can already do this.  Simply make your text file like this:

Folder1\Subfolder1\SubSubfolder1
Folder2
Folder3\Subfolder3
...

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: DONE: make folder set out of a txt file
« Reply #10 on: June 30, 2010, 10:54 PM »
I use a similar program to create folders and subfolders inside a folder.
The script from Skwire is splendid and may be improved to the eleventh desire. Simply controlling an historial of the last text files and the last root folders used with a dropdownlist for the two options controlled by an ini file.
Very useful to organize matters or incidents according to patterns in the text files.

;D Splendid. Then is more simple. I'll apply .
Best Regards.

I'll consider adding this.

And may be improved with the possibility to create folders and subfolders. Two levels is enough.

You can already do this.  Simply make your text file like this:

Folder1\Subfolder1\SubSubfolder1
Folder2
Folder3\Subfolder3
...

Perfect then. I'll apply in this way. Is better than two text files.

:P

delwoode

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 146
Re: DONE: make folder set out of a txt file
« Reply #11 on: April 06, 2011, 09:55 AM »
@ScanCode,   the batch file you posted.  Where does it create the folder structure.
I mean if I have the text fie  and the batch file in this folder eg
C:\test folder
will it create the folder structure inside this test folder or on the root drive?
« Last Edit: April 06, 2011, 09:57 AM by delwoode »

scancode

  • I will eat Cody someday.
  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 641
    • Cody Award
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Furry Fandom Badge - Furry Fandom
    • DJ Badge - DJ
Re: DONE: make folder set out of a txt file
« Reply #12 on: April 06, 2011, 06:50 PM »
It creates the folders under the directory it's being run from.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: DONE: make folder set out of a txt file
« Reply #13 on: September 28, 2011, 06:36 PM »
featured on cybernet news today. :up:

• http://cybernetnews.com/bulk-create-folders/

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: DONE: make folder set out of a txt file
« Reply #14 on: October 03, 2011, 03:10 AM »

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: DONE: make folder set out of a txt file
« Reply #15 on: October 03, 2011, 02:42 PM »
Sheesh, I really should improve this app, eh?  ;)

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: DONE: make folder set out of a txt file
« Reply #16 on: March 25, 2012, 04:57 AM »
This has been a long time coming...

Website | Download
v1.0.4 - 2012-03-24
   + Unicode compatible.
   + Added manual entry edit field.
   + Paths are saved.
   + Can now create a shortcut in your SendTo menu.  Use the Options menu.
   * Now accepts the root folder path as a commandline argument.  Useful for scripts.


main.png
« Last Edit: March 25, 2012, 02:30 PM by skwire »

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: DONE: make folder set out of a txt file
« Reply #17 on: March 25, 2012, 01:56 PM »
Then is time to come to see your new creation

Best Regards
:-*

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: DONE: make folder set out of a txt file
« Reply #18 on: March 25, 2012, 02:11 PM »
I am doing something bad. I try to set the root folder in the desktop
M:\Documents and Settings\JOSE\Escritorio
and create 4 folders : pepe, pepe2, pepe3 and pepe4
but I obtain this window :
Please select a valid root folder
:(

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: DONE: make folder set out of a txt file
« Reply #19 on: March 25, 2012, 02:13 PM »
I tried with a folder
M:\Text2Folders but with the same result.

May be my system ? windows xp pro + sp3

:P

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: DONE: make folder set out of a txt file
« Reply #20 on: March 25, 2012, 02:15 PM »
I observed in your web that the symbol is not \ , but other

I will try

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: DONE: make folder set out of a txt file
« Reply #21 on: March 25, 2012, 02:16 PM »
No, it was my fault:

Website | Download
v1.0.5 - 2012-03-25
    ! Erroneous error checking of the text file field.  (Thanks, Contro)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: DONE: make folder set out of a txt file
« Reply #22 on: March 25, 2012, 02:27 PM »
Perfect then. I had the ¥ character ready
I try again
:-*


Nice
Very Quick

Best Regards
;D

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: DONE: make folder set out of a txt file
« Reply #23 on: May 11, 2012, 01:46 AM »
Mentioned on freewaregenius today:
http://www.freewaregenius.com/2012/05/10/create-multiple-folders-quickly-and-in-batch-with-text2folders

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: DONE: make folder set out of a txt file
« Reply #24 on: May 11, 2012, 05:08 AM »
Yeehaw.  :D  It's funny how much press this app gets for how simple it is.

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