Welcome Guest.   Make a donation to an author on the site September 18, 2014, 02:41:11 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Learn about the DonationCoder.com microdonation system (DonationCredits).
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 3 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE: make folder set out of a txt file  (Read 29691 times)
reddie247
Participant
*
Posts: 2

View Profile Give some DonationCredits to this forum member
« on: March 12, 2009, 07:00:00 AM »

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
Logged
scancode
Honorary Member
**
Posts: 636



I will eat Cody someday.

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: March 12, 2009, 07:18:05 AM »

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



Have fun, and welcome to the forums!
Logged

scancode
Honorary Member
**
Posts: 636



I will eat Cody someday.

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: March 12, 2009, 07:25:13 AM »

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 (0.27 KB - downloaded 1078 times.)
Logged

skwire
Moderator
*****
Posts: 4,072



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: March 12, 2009, 07:53:50 AM »

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.
« Last Edit: March 12, 2009, 08:02:01 AM by skwire » Logged

reddie247
Participant
*
Posts: 2

View Profile Give some DonationCredits to this forum member
« Reply #4 on: March 14, 2009, 06:28:15 PM »

thanx scancode it worked just fine, just had to replace all tabs for spaces
Logged
adrienne
Supporting Member
**
Posts: 4

View Profile Give some DonationCredits to this forum member
« Reply #5 on: May 18, 2009, 01:38:22 PM »

Skwire, I'd be very interested in the AHK script, can you post it?

Thanks!
Logged
skwire
Moderator
*****
Posts: 4,072



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: May 18, 2009, 02:52:21 PM »

Skwire, I'd be very interested in the AHK script, can you post it?

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

skwire
Moderator
*****
Posts: 4,072



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: March 06, 2010, 06:21:42 PM »

Website | Download
v1.0.3 - 2010-03-06
    ! Fixed some 120 DPI graphical issues.  (Thanks, TT1)
Logged

Contro
Participant
*
Posts: 2,120

View Profile Give some DonationCredits to this forum member
« Reply #8 on: June 30, 2010, 09:43:49 AM »

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.

 tongue
Logged
skwire
Moderator
*****
Posts: 4,072



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: June 30, 2010, 10:00:35 AM »

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
...
Logged

Contro
Participant
*
Posts: 2,120

View Profile Give some DonationCredits to this forum member
« Reply #10 on: June 30, 2010, 05:54:45 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.

 Grin 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.

 tongue
Logged
delwoode
Supporting Member
**
Posts: 142


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #11 on: April 06, 2011, 04:55:25 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, 04:57:31 AM by delwoode; Reason: got name wrong! » Logged
scancode
Honorary Member
**
Posts: 636



I will eat Cody someday.

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #12 on: April 06, 2011, 01:50:55 PM »

It creates the folders under the directory it's being run from.
Logged

lanux128
Global Moderator
*****
Posts: 6,089



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #13 on: September 28, 2011, 01:36:50 PM »

featured on cybernet news today. thumbs up

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

lanux128
Global Moderator
*****
Posts: 6,089



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #14 on: October 02, 2011, 10:10:54 PM »

and also in lifehacker.. Wink

http://lifehacker.com/584...ates-many-folders-at-once
Logged

skwire
Moderator
*****
Posts: 4,072



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #15 on: October 03, 2011, 09:42:05 AM »

Sheesh, I really should improve this app, eh?   Wink
Logged

skwire
Moderator
*****
Posts: 4,072



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #16 on: March 24, 2012, 11:57:48 PM »

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.


« Last Edit: March 25, 2012, 09:30:27 AM by skwire » Logged

Contro
Participant
*
Posts: 2,120

View Profile Give some DonationCredits to this forum member
« Reply #17 on: March 25, 2012, 08:56:28 AM »

Then is time to come to see your new creation

Best Regards
 Kiss
Logged
Contro
Participant
*
Posts: 2,120

View Profile Give some DonationCredits to this forum member
« Reply #18 on: March 25, 2012, 09:11:28 AM »

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
 Sad

Logged
Contro
Participant
*
Posts: 2,120

View Profile Give some DonationCredits to this forum member
« Reply #19 on: March 25, 2012, 09:13:59 AM »

I tried with a folder
M:\Text2Folders but with the same result.

May be my system ? windows xp pro + sp3

 tongue
Logged
Contro
Participant
*
Posts: 2,120

View Profile Give some DonationCredits to this forum member
« Reply #20 on: March 25, 2012, 09:15:21 AM »

I observed in your web that the symbol is not \ , but other

I will try
Logged
skwire
Moderator
*****
Posts: 4,072



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #21 on: March 25, 2012, 09:16:09 AM »

No, it was my fault:

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

Contro
Participant
*
Posts: 2,120

View Profile Give some DonationCredits to this forum member
« Reply #22 on: March 25, 2012, 09:27:41 AM »

Perfect then. I had the ¥ character ready
I try again
 Kiss


Nice
Very Quick

Best Regards
 Grin
Logged
mouser
First Author
Administrator
*****
Posts: 33,356



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #23 on: May 10, 2012, 08:46:28 PM »

Mentioned on freewaregenius today:
http://www.freewaregenius...n-batch-with-text2folders
Logged
skwire
Moderator
*****
Posts: 4,072



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #24 on: May 11, 2012, 12:08:06 AM »

Yeehaw.   cheesy   It's funny how much press this app gets for how simple it is.
Logged

Pages: [1] 2 3 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.047s | Server load: 0.11 ]