Overclockers Australia Forums
OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > General Software

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 22nd April 2012, 8:36 PM   #1
supasaiyan Thread Starter
Member
 
supasaiyan's Avatar
 
Join Date: Nov 2006
Location: 3000
Posts: 2,052
Default Need to Create 100's of Folders from a .txt file

I have a text file with 100's of file names and I need to create a folder for each file.

Apart from creating manually 100's of folders and then renaming them, I was hoping (praying) someone could recommend software that could do this??
supasaiyan is online now   Reply With Quote

Join OCAU to remove this ad!
Old 22nd April 2012, 9:10 PM   #2
poinda
Member
 
Join Date: Jan 2005
Location: Victoria
Posts: 248
Default

you could copy and paste the names into excel.
then concatenate the name of the folder to make
mkdir foldername
then turn it into a batch file and run it
poinda is offline   Reply With Quote
Old 22nd April 2012, 9:18 PM   #3
Rezin
Member
 
Rezin's Avatar
 
Join Date: Oct 2002
Posts: 8,619
Default

test.txt:

Code:
test.txt
test1.txt
test2.txt
test3.txt
Command prompt:

Code:
for /f %a in (test.txt) do mkdir %~na
Rezin is offline   Reply With Quote
Old 22nd April 2012, 9:25 PM   #4
breech
Member
 
breech's Avatar
 
Join Date: Mar 2002
Location: Syd
Posts: 1,437
Default

batch files will do it , loop through the text file
search batch editing ini files (will provide closer results)
'directories' as well as 'folders'

things to watch out for:
illegal characters and folder names being too long.

heres a link that should get you started
breech is offline   Reply With Quote
Old 23rd April 2012, 2:13 AM   #5
zenturio
Member
 
zenturio's Avatar
 
Join Date: Aug 2003
Location: Perth 6060
Posts: 147
Default

Would Text 2 Folders do the job?

skwire.dcmembers.com/wb/pages/software/text-2-folders.php
zenturio is offline   Reply With Quote
Old 23rd April 2012, 9:02 AM   #6
dark_abyss
Member
 
dark_abyss's Avatar
 
Join Date: Jul 2001
Location: Adelaide
Posts: 618
Default

Powershell makes this pretty simple

Code:
Get-Content textFile.txt | % { mkdir $_ }
Or if you wanted to strip out the file extensions something like

Code:
Get-Content textFile.txt | % { mkdir $_.SubString(0,$_.LastIndexOf(".")) }
__________________
"Racing is...... life. Everything else before, everthing after, is just waiting" - Steve McQueen
dark_abyss is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 3:15 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!