| Author | Message | 
	
	
	
			| Caspius=GCHQ= | 
				
				
					|  Post subject: Directory > Text file   Posted:  Tue Aug 29, 2006 6:34 pm  |  | 
		
			| 
			
				|  |  | The Groundkeeper |  |  |  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?   _________________ 
 
 |  | 
		
			|    |   | 
	
	|  | 
	
	
			| GeneralPublic=GCHQ= | 
				
				
					|  Post subject:    Posted:  Tue Aug 29, 2006 6:46 pm  |  | 
		
			| 
			
				|  |  | Saints ftw!! |  |  |  Joined: Fri Apr 23, 2004 6:22 pm
 Posts: 7877
 Location: /dev/null
 | 
				
					| command prompt ?
 dir > file.txt
 _________________
 Insert unfunny comment here ->
 
 
 |  | 
		
			|    |   | 
	
	|  | 
	
	
			| Arma | 
				
				
					|  Post subject:    Posted:  Tue Aug 29, 2006 6:57 pm  |  | 
		
			| 
			
				|  |  | PFY wannabe |  |  |  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... _________________   "I wish my lawn was emo, so it would cut itself...."
 
 |  | 
		
			|    |   | 
	
	|  | 
	
	
			| Mike=GCHQ= | 
				
				
					|  Post subject:    Posted:  Mon Sep 04, 2006 10:51 pm  |  | 
		
			| 
			
				|  |  | Legal Pidgeon |  |  |  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)
 _________________ ---------------------------------------- 
 
 |  | 
		
			|    |   | 
	
	|  | 
	
	
			| GeneralPublic=GCHQ= | 
				
				
					|  Post subject:    Posted:  Tue Sep 05, 2006 12:57 am  |  | 
		
			| 
			
				|  |  | Saints ftw!! |  |  |  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 ->
 
 
 |  | 
		
			|    |   | 
	
	|  | 
	
	
			| Arma | 
				
				
					|  Post subject:    Posted:  Tue Sep 05, 2006 8:35 am  |  | 
		
			| 
			
				|  |  | PFY wannabe |  |  |  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
 .......
 _________________   "I wish my lawn was emo, so it would cut itself...."
 
 |  | 
		
			|    |   | 
	
	|  | 
	
	
			| Cybercon III | 
				
				
					|  Post subject:    Posted:  Tue Sep 05, 2006 9:35 am  |  | 
		
			| 
			
				|  |  | The houseworks gone to pot! |  |  |  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 --
 ; 
 
 |  | 
		
			|    |   | 
	
	|  | 
	
	
			| Mike=GCHQ= | 
				
				
					|  Post subject:    Posted:  Tue Sep 05, 2006 1:28 pm  |  | 
		
			| 
			
				|  |  | Legal Pidgeon |  |  |  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
 _________________ ---------------------------------------- 
 
 |  | 
		
			|    |   | 
	
	|  | 
	
	
			| Sleeper Service=GCHQ= | 
				
				
					|  Post subject:    Posted:  Tue Sep 05, 2006 2:35 pm  |  | 
		
			| 
			
				|  |  | Humping a Super Model |  |  |  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
 _________________ 
 
 |  | 
		
			|    |   | 
	
	|  | 
	
	
			| Mike=GCHQ= | 
				
				
					|  Post subject:    Posted:  Tue Sep 05, 2006 2:56 pm  |  | 
		
			| 
			
				|  |  | Legal Pidgeon |  |  |  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??_________________ ---------------------------------------- 
 
 |  | 
		
			|    |   | 
	
	|  | 
	
	
			| happyslappy | 
				
				
					|  Post subject: dir   Posted:  Tue Sep 05, 2006 3:07 pm  |  | 
		
			| 
			
				|  |  | that was a stupid comment btw |  |  |  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
 _________________   
 
 |  | 
		
			|    |   | 
	
	|  | 
	
	
			| Mike=GCHQ= | 
				
				
					|  Post subject:    Posted:  Tue Sep 05, 2006 3:15 pm  |  | 
		
			| 
			
				|  |  | Legal Pidgeon |  |  |  Joined: Sat Apr 17, 2004 11:47 am
 Posts: 7844
 Location: Manchester
 | 
				
					| hmm access denied. confused
i have all permissions
 _________________ ---------------------------------------- 
 
 |  | 
		
			|    |   | 
	
	|  | 
	
	
			| Mike=GCHQ= | 
				
				
					|  Post subject:    Posted:  Tue Sep 05, 2006 5:22 pm  |  | 
		
			| 
			
				|  |  | Legal Pidgeon |  |  |  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 _________________ ---------------------------------------- 
 
 |  | 
		
			|    |   | 
	
	|  | 
	
	
			| GeneralPublic=GCHQ= | 
				
				
					|  Post subject:    Posted:  Tue Sep 05, 2006 7:35 pm  |  | 
		
			| 
			
				|  |  | Saints ftw!! |  |  |  Joined: Fri Apr 23, 2004 6:22 pm
 Posts: 7877
 Location: /dev/null
 | 
				
					| or 
 dir *.mp3 /s > c:\mike.txt
 _________________
 Insert unfunny comment here ->
 
 
 |  | 
		
			|    |   | 
	
	|  | 
	|  |