Gamecommunity =GCHQ= http://forum.gamecommunity.co.uk:8080/ | |
Directory > Text file http://forum.gamecommunity.co.uk:8080/viewtopic.php?f=6&t=31905 |
Page 1 of 1 |
Author: | Caspius=GCHQ= [ Tue Aug 29, 2006 6:34 pm ] |
Post subject: | Directory > Text file |
Is there any way or a any util that can read the contents of a directory and turn it into a text file? |
Author: | GeneralPublic=GCHQ= [ Tue Aug 29, 2006 6:46 pm ] |
Post subject: | |
command prompt ? dir > file.txt |
Author: | Arma [ Tue Aug 29, 2006 6:57 pm ] |
Post subject: | |
You could get the ls (linux) command for windows to have more options over the output... |
Author: | Mike=GCHQ= [ Mon Sep 04, 2006 10:51 pm ] |
Post subject: | |
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) |
Author: | GeneralPublic=GCHQ= [ Tue Sep 05, 2006 12:57 am ] |
Post subject: | |
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 |
Author: | Arma [ Tue Sep 05, 2006 8:35 am ] |
Post subject: | |
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 ....... |
Author: | Cybercon III [ Tue Sep 05, 2006 9:35 am ] |
Post subject: | |
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) |
Author: | Mike=GCHQ= [ Tue Sep 05, 2006 1:28 pm ] |
Post subject: | |
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 |
Author: | Sleeper Service=GCHQ= [ Tue Sep 05, 2006 2:35 pm ] |
Post subject: | |
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 |
Author: | Mike=GCHQ= [ Tue Sep 05, 2006 2:56 pm ] |
Post subject: | |
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?? |
Author: | happyslappy [ Tue Sep 05, 2006 3:07 pm ] |
Post subject: | dir |
set the full path for the txt file *.mp3`s > c:/dir/dir/mike-mp3s.txt |
Author: | Mike=GCHQ= [ Tue Sep 05, 2006 3:15 pm ] |
Post subject: | |
hmm access denied. confused i have all permissions |
Author: | Mike=GCHQ= [ Tue Sep 05, 2006 5:22 pm ] |
Post subject: | |
aha i just found some text files so it must have worked on one of my last tries |
Author: | GeneralPublic=GCHQ= [ Tue Sep 05, 2006 7:35 pm ] |
Post subject: | |
or dir *.mp3 /s > c:\mike.txt |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |