Login    Forum    Register    Search    FAQ

Board index » HELP AND ADVICE » GAME/SOFTWARE/HARDWARE PROBLEMS




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Directory > Text file
 Post Posted: Tue Aug 29, 2006 6:34 pm 
Offline
The Groundkeeper
User avatar

Joined: Fri Mar 26, 2004 7:59 pm
Posts: 6056
Location: UK
Is there any way or a any util that can read the contents of a directory and turn it into a text file? :?

_________________
Image


Top 
 Profile  
 
 Post subject:
 Post Posted: Tue Aug 29, 2006 6:46 pm 
Offline
Saints ftw!!
User avatar

Joined: Fri Apr 23, 2004 6:22 pm
Posts: 7877
Location: /dev/null
command prompt ?

dir > file.txt

_________________
Insert unfunny comment here ->


Top 
 Profile  
 
 Post subject:
 Post Posted: Tue Aug 29, 2006 6:57 pm 
Offline
PFY wannabe
User avatar

Joined: Sun Jan 02, 2005 11:51 pm
Posts: 3295
Location: South, but not far south enough :/
You could get the ls (linux) command for windows to have more options over the output...

_________________
Image

"I wish my lawn was emo, so it would cut itself...."


Top 
 Profile  
 
 Post subject:
 Post Posted: Mon Sep 04, 2006 10:51 pm 
Offline
Legal Pidgeon
User avatar

Joined: Sat Apr 17, 2004 11:47 am
Posts: 7844
Location: Manchester
i cant work out how to do this (command syntax)

can you elaborate?

i want to put my music (artist folders in a txt file)

_________________
----------------------------------------
Image


Top 
 Profile  
 
 Post subject:
 Post Posted: Tue Sep 05, 2006 12:57 am 
Offline
Saints ftw!!
User avatar

Joined: Fri Apr 23, 2004 6:22 pm
Posts: 7877
Location: /dev/null
go to the command prompt
use the cd command to change to the directory you want

for example

cd \ - put's you at the root of C:
cd doc* then put in in C:\Documents and Settings

once in the right place

dir /? will show you the available options


dir *.mp3 /s will list all MP3's in that directory, and subdirectories below it


dir /od will list the files, sorted by date

You can just add > filename.txt to the command to output the result to a texfile, ie. dir xxx*.mpg /s > cow.txt

_________________
Insert unfunny comment here ->


Top 
 Profile  
 
 Post subject:
 Post Posted: Tue Sep 05, 2006 8:35 am 
Offline
PFY wannabe
User avatar

Joined: Sun Jan 02, 2005 11:51 pm
Posts: 3295
Location: South, but not far south enough :/
That will work with two small issues.

a) The name of the artist and the song has to be in the name of the mp3.

b) That you run rhew dir command from the folder (ie dir cant do recursive folders).

The windows version of the linux find command will anullify point b. If you have correctly updated ID3 tags you could rename the files to have the artist / trackname make up the filename (getting your mp3's in this state is not as easy as it sounds).

If you do then the command is : find . -name *.mp3

Which will output something like this :

.\dl\Asylum Street Spankers - Mah Na Mah Na.mp3
.\dl\Barrio Sesamo - Mah-na mah-na (Sesame Street).mp3
.\dl\Benny Hill - Mah-Na-Mah-Na.mp3
.\dl\Carlo Andrei - Mah-na-mah-na, cover.mp3
.\dl\Cosmix - Mah Na Mah Na.mp3
.\dl\Dave Pell Singers - Mah-Na-Mah-Na.mp3
.......

_________________
Image

"I wish my lawn was emo, so it would cut itself...."


Top 
 Profile  
 
 Post subject:
 Post Posted: Tue Sep 05, 2006 9:35 am 
Offline
The houseworks gone to pot!
User avatar

Joined: Sun Feb 20, 2005 9:11 pm
Posts: 196
try the command tree

so navigate the the directory you want to start from

ie.

cd C:/monkeydirectory/

tree > myoutput.txt

like that... the ouput will have strange characters in it (just replcae thes with the desired seperator)

_________________
-- Don't bring a knife to a gun fight --
;Image


Top 
 Profile  
 
 Post subject:
 Post Posted: Tue Sep 05, 2006 1:28 pm 
Offline
Legal Pidgeon
User avatar

Joined: Sat Apr 17, 2004 11:47 am
Posts: 7844
Location: Manchester
ok its more complicated than i thought it would be

unfortuanately i have

E:\Music\Mikey\

then like loads of folders for each artist each with albums inside and tracks

i think all or at least most of them have id3 tags

for some reason it isn't outputting a text file

i tried this

dir E:\Music\Mikey\.mp3 /s > Mikey.txt

appeared to scan the hard drive for 6 seconds then it said file not found

_________________
----------------------------------------
Image


Top 
 Profile  
 
 Post subject:
 Post Posted: Tue Sep 05, 2006 2:35 pm 
Offline
Humping a Super Model
User avatar

Joined: Mon Dec 27, 2004 1:54 pm
Posts: 3024
Location: NorLonTon
dir E:\Music\Mikey\.mp3 /s > Mikey.txt

Do it like this, add a space because its trying to find the dir E:\Music\Mikey\.mp3 directory of which there is none

dir E:\Music\Mikey\ .mp3 /s > Mikey.txt

_________________
Image


Top 
 Profile  
 
 Post subject:
 Post Posted: Tue Sep 05, 2006 2:56 pm 
Offline
Legal Pidgeon
User avatar

Joined: Sat Apr 17, 2004 11:47 am
Posts: 7844
Location: Manchester
didn't work either.. :(

i can get it to read in all my mp3's in the directory, but when i add > mike.txt it doesnt create a text file

same as above if i remove '>' doesnt add a text file??

_________________
----------------------------------------
Image


Top 
 Profile  
 
 Post subject: dir
 Post Posted: Tue Sep 05, 2006 3:07 pm 
Offline
that was a stupid comment btw
User avatar

Joined: Wed Mar 03, 2004 12:40 pm
Posts: 109345
Location: manchester
set the full path for the txt file

*.mp3`s > c:/dir/dir/mike-mp3s.txt

_________________
Image
Image


Top 
 Profile  
 
 Post subject:
 Post Posted: Tue Sep 05, 2006 3:15 pm 
Offline
Legal Pidgeon
User avatar

Joined: Sat Apr 17, 2004 11:47 am
Posts: 7844
Location: Manchester
hmm access denied. confused
i have all permissions

_________________
----------------------------------------
Image


Top 
 Profile  
 
 Post subject:
 Post Posted: Tue Sep 05, 2006 5:22 pm 
Offline
Legal Pidgeon
User avatar

Joined: Sat Apr 17, 2004 11:47 am
Posts: 7844
Location: Manchester
aha i just found some text files so it must have worked on one of my last tries

_________________
----------------------------------------
Image


Top 
 Profile  
 
 Post subject:
 Post Posted: Tue Sep 05, 2006 7:35 pm 
Offline
Saints ftw!!
User avatar

Joined: Fri Apr 23, 2004 6:22 pm
Posts: 7877
Location: /dev/null
or

dir *.mp3 /s > c:\mike.txt

_________________
Insert unfunny comment here ->


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 14 posts ] 

Board index » HELP AND ADVICE » GAME/SOFTWARE/HARDWARE PROBLEMS


Who is online

Users browsing this forum: No registered users and 2 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
  • Shoutbox
  • Shout Message


test
cron