Welcome Guest.   Make a donation to an author on the site July 29, 2010, 03:33:51 PM  *

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]   Go Down
  Print  
Author Topic: DONE: make folder set out of a txt file  (Read 4450 times)
reddie247
Participant
*
Posts: 2

View Profile Give some DonationCredits to this forum member
« on: March 12, 2009, 06: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: 582



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, 06: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: 582



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, 06: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 330 times.)
Logged

skwire
Moderator
*****
Posts: 1,399



More Coding Snacks?! Nom nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: March 12, 2009, 06: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, 07: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, 05: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, 12:38:22 PM »

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

Thanks!
Logged
skwire
Moderator
*****
Posts: 1,399



More Coding Snacks?! Nom nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: May 18, 2009, 01: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: 1,399



More Coding Snacks?! Nom 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: 248

View Profile Give some DonationCredits to this forum member
« Reply #8 on: June 30, 2010, 08: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: 1,399



More Coding Snacks?! Nom nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: June 30, 2010, 09: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: 248

View Profile Give some DonationCredits to this forum member
« Reply #10 on: June 30, 2010, 04: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
Pages: [1]   Go Up
  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
SMF © 2006-2009, Simple Machines LLC

social bookmark this page