If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How to make a text list of files in a folder
In the old DOS days, I could make a list of all the files in a folder by
doing "DIR files.txt" (something like that, it's been awhile). Anyhow, I want to make a text list of a folder, with a bunch of sub folders. They are all MP3 music files. I want the FULL name of all music files, not the 8 + 3 dos names. For example MUSIC OLDIES BEATLES STONES DAVE CLARK FIVE PINK FLOYD ELVIS COUNTRY DOLLY PARTON JOHNNY CASH WAYLON WILLIE NELSON ROCK CLASSICAL etc..... What I want produced is a text list of all sub-folder and file names. I'm running XP Pro Sp3. How do I do this? Thanks! |
Ads |
#2
|
|||
|
|||
How to make a text list of files in a folder
From a command prompt, issue the command
dir /? and learn about all the options (particularly /s) available to you. On Wed, 19 Oct 2016 17:14:29 -0400, wrote: In the old DOS days, I could make a list of all the files in a folder by doing "DIR files.txt" (something like that, it's been awhile). Anyhow, I want to make a text list of a folder, with a bunch of sub folders. They are all MP3 music files. I want the FULL name of all music files, not the 8 + 3 dos names. For example MUSIC OLDIES BEATLES STONES DAVE CLARK FIVE PINK FLOYD ELVIS COUNTRY DOLLY PARTON JOHNNY CASH WAYLON WILLIE NELSON ROCK CLASSICAL etc..... What I want produced is a text list of all sub-folder and file names. I'm running XP Pro Sp3. How do I do this? Thanks! -- Remove del for email |
#3
|
|||
|
|||
How to make a text list of files in a folder
|
#5
|
|||
|
|||
How to make a text list of files in a folder
Paul wrote:
wrote: In the old DOS days, I could make a list of all the files in a folder by doing "DIR files.txt" (something like that, it's been awhile). Anyhow, I want to make a text list of a folder, with a bunch of sub folders. They are all MP3 music files. I want the FULL name of all music files, not the 8 + 3 dos names. For example MUSIC OLDIES BEATLES STONES DAVE CLARK FIVE PINK FLOYD ELVIS COUNTRY DOLLY PARTON JOHNNY CASH WAYLON WILLIE NELSON ROCK CLASSICAL etc..... What I want produced is a text list of all sub-folder and file names. I'm running XP Pro Sp3. How do I do this? Thanks! The "dir" command doesn't look like it's going to do a good job. To see the "dir" options, try dir /? The other command that comes close, is tree /f And to make it practical, we can redirect it. tree /f filelist.txt That will store the output in a text file for you. Use this, for more "tree help". The tree help is very short. tree /? How to do redirection, is not typically addressed in a help entry. As knowing how to do such things, is a "shell" function and is a matter of "knowing your shell" :-) I already knew about the concept of redirection, from working with other OSes. So I cheated. To learn about redirection the first time, I probably got that from the Cshell book. I needed to pick one of these up, so I could use my first Unix box at work. I didn't want to ask too many dumb questions of my fellow employees. Once you learn the concepts of how shells work, learning the other ones is a lot easier. http://media-cache-ec0.pinimg.com/73...9dbcf6a9c1128e 90e596eb8d.jpg I used to have a cheat sheet, that showed the equivalent commands on five different shells. A damn fine piece of work, only I lost the bookmark to it... Paul To add to what Paul said, try tree /f /a files.txt The /a uses ascii instead of extended characters. It makes the files.txt easier to read. JT -- |
#6
|
|||
|
|||
How to make a text list of files in a folder
|
#7
|
|||
|
|||
How to make a text list of files in a folder
On Wed, 19 Oct 2016 20:28:04 -0400, Paul wrote:
That will store the output in a text file for you. Use this, for more "tree help". The tree help is very short. tree /? How to do redirection, is not typically addressed in a help entry. As knowing how to do such things, is a "shell" function and is a matter of "knowing your shell" :-) I already knew about the concept of redirection, from working with other OSes. So I cheated. To learn about redirection the first time, I probably got that from the Cshell book. I needed to pick one of these up, so I could use my first Unix box at work. I didn't want to ask too many dumb questions of my fellow employees. Once you learn the concepts of how shells work, learning the other ones is a *lot* easier. http://media-cache-ec0.pinimg.com/73...90e596eb8d.jpg I used to have a cheat sheet, that showed the equivalent commands on five different shells. A damn fine piece of work, only I lost the bookmark to it... Paul This makes sense and I now recall this as similar to what I did in Dos. Like I said, it's been years... But I am almost shocked to find out that there is no way to do this in Windows. (not using dos or dos shell). Has no one ever written a piece of freeware, shareware, or paid utility program to do this from within Windows? I cant be the only person who needs to make lists. Besides my music, I want to do a series of MP4 videos. There are 220 videos. I have around 130 of them. I dont store them on my laptop (or I'd not have any hard drive space left). So when I am at a WIFI, I want to download more of them, but I need a list so I can see which numbers I have. (they are all numbered). So, lets say I'm missing 12 / 27 / 32 / 33 / 48 / 55 / 64 / 65 / 66 / 88 / 103 / 104 etc..... I will know which ones to download by just looking at this list. Not only that, but I have thousands of downloads of old software programs stored on an external USB drive. I dont want to have to plug in that drive everytime I want to check to see if I have ex: firefox 27. It's so much easier to just open a text file and search for the filename. I can store that text file on ALL of my computers. |
#8
|
|||
|
|||
How to make a text list of files in a folder
Jonas,
But I am almost shocked to find out that there is no way to do this in Windows. Are you sure ? Has no one ever written a piece of freeware, shareware, or paid utility program to do this from within Windows? You mean a bit of VBScripting which can be launced by double-clicking it, and than can do pretty-much anything you want ? Yes, that has been written many times. :-) Regards, Rudy Wieser -- Origional message schreef in berichtnieuws ... On Wed, 19 Oct 2016 20:28:04 -0400, Paul wrote: That will store the output in a text file for you. Use this, for more "tree help". The tree help is very short. tree /? How to do redirection, is not typically addressed in a help entry. As knowing how to do such things, is a "shell" function and is a matter of "knowing your shell" :-) I already knew about the concept of redirection, from working with other OSes. So I cheated. To learn about redirection the first time, I probably got that from the Cshell book. I needed to pick one of these up, so I could use my first Unix box at work. I didn't want to ask too many dumb questions of my fellow employees. Once you learn the concepts of how shells work, learning the other ones is a *lot* easier. http://media-cache-ec0.pinimg.com/73...6a9c1128e90e59 6eb8d.jpg I used to have a cheat sheet, that showed the equivalent commands on five different shells. A damn fine piece of work, only I lost the bookmark to it... Paul This makes sense and I now recall this as similar to what I did in Dos. Like I said, it's been years... But I am almost shocked to find out that there is no way to do this in Windows. (not using dos or dos shell). Has no one ever written a piece of freeware, shareware, or paid utility program to do this from within Windows? I cant be the only person who needs to make lists. Besides my music, I want to do a series of MP4 videos. There are 220 videos. I have around 130 of them. I dont store them on my laptop (or I'd not have any hard drive space left). So when I am at a WIFI, I want to download more of them, but I need a list so I can see which numbers I have. (they are all numbered). So, lets say I'm missing 12 / 27 / 32 / 33 / 48 / 55 / 64 / 65 / 66 / 88 / 103 / 104 etc..... I will know which ones to download by just looking at this list. Not only that, but I have thousands of downloads of old software programs stored on an external USB drive. I dont want to have to plug in that drive everytime I want to check to see if I have ex: firefox 27. It's so much easier to just open a text file and search for the filename. I can store that text file on ALL of my computers. |
#9
|
|||
|
|||
How to make a text list of files in a folder
Il giorno Thu 20 Oct 2016 06:30:56a, ** inviava su
microsoft.public.windowsxp.general il messaggio . Vediamo cosa scrisse: Has no one ever written a piece of freeware, shareware total commander, shareware, has a similar function the preview can be send to a PDF printer -- /-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\ -=- -=- -=- -=- -=- -=- -=- -=- - -=- http://www.bb2002.it ............ [ al lavoro ] ........... |
#10
|
|||
|
|||
How to make a text list of files in a folder
|
#11
|
|||
|
|||
How to make a text list of files in a folder
Barry Schwarz on Wed, 19 Oct 2016 16:35:37 -0700
typed in microsoft.public.windowsxp.general the following: On Wed, 19 Oct 2016 17:14:29 -0400, wrote: In the old DOS days, I could make a list of all the files in a folder by doing "DIR files.txt" (something like that, it's been awhile). Anyhow, I want to make a text list of a folder, with a bunch of sub folders. They are all MP3 music files. I want the FULL name of all music files, not the 8 + 3 dos names. For example MUSIC OLDIES BEATLES STONES DAVE CLARK FIVE PINK FLOYD ELVIS COUNTRY DOLLY PARTON JOHNNY CASH WAYLON WILLIE NELSON ROCK CLASSICAL etc..... What I want produced is a text list of all sub-folder and file names. I'm running XP Pro Sp3. How do I do this? Thanks! From a command prompt, issue the command dir /? Which will get you the file names. Unless you have your files named Genre - Artist - Album - Song.mp3 it may not help. and learn about all the options (particularly /s) available to you. option B is to get something like Mp3Tag http://www.mp3tag.de/en/ which lets you "dump" a playlist to a text or csv file. You can then take the text file and produce a batchfile to copy said titles to [target]. "Its a simple procedure" Import to spreadsheet with column divider == "\" On Sheet 2, If sheet1.a1 is blank, then blank, else cellA1== contents of Sheet1.A1 for colums A through G, and row 1 through $last_line. In Colum H concatenate A through G. This is the file name test to see if Sheet1.c2 is blank, if yes test if sheet1.b2 is blank then make this cell blank, else make this cell contents what's in sheet1.B2, else make it blank =IF (ISBLANK(Sheet1.C2);IF(ISBLANK(Raw.B2);"";Raw.B2); "") In columns K though R if Sheet1.b2 is blank then Cell.k2= is blank Else concatenate \ Sheet1.a2 contents of Sheet1.A2 =IF(ISBLANK(Raw.B2);"";CONCATENATE("\";Raw.A2;IF(I SBLANK(Raw.A2);"";""))) Then all you need to do is in sheet three is test for a blank cell in sheet2, concatenate the path name with the filename and any dividers commands and other details e.g: CONCATENATE("robocopy %d:\music";Sheet2.J2;Sheet2.R2;"% %j:\music";IF(LOWER(LEFT(Sheet1.A2;3))="all";"\CDS ";"");Sheet2.R2;"% /if %";Sheet2.I2;"% /log+:jmus.rtf /w:1 /r:5 /np /xx /njh /njs /tee")) Save that sheet as a text file, enter it into a word processor, Find and Replace the quote mark text delimiters with spaces, and then the % with ", save as batch file and you're good to go. See, "simple". Of course, I was trying to get a batch file to copy music files from Main Drive to External Drive to transfer to another computer. I have not tried to dump to a file just the album data. Might be possible to do it with fewer steps that way. tschus pyotr -- pyotr filipivich Just because they're invisible doesn't mean they are your friends. |
#12
|
|||
|
|||
How to make a text list of files in a folder
On Thu, 20 Oct 2016 08:47:01 -0700, pyotr filipivich
wrote: Of course, I was trying to get a batch file to copy music files from Main Drive to External Drive to transfer to another computer. I have not tried to dump to a file just the album data. Might be possible to do it with fewer steps that way. tschus pyotr -- If you just want to copy the MP3 files do XCOPY source drive target drive *.MP3 /s That would copy every MP3 on the source to the target. If you want to be more selective, start in the directory that has the ones you want to copy. |
#13
|
|||
|
|||
How to make a text list of files in a folder
|
#14
|
|||
|
|||
How to make a text list of files in a folder
On Fri, 21 Oct 2016 09:26:56 -0700, pyotr filipivich
wrote: on Thu, 20 Oct 2016 12:37:56 -0400 typed in microsoft.public.windowsxp.general the following: On Thu, 20 Oct 2016 08:47:01 -0700, pyotr filipivich wrote: Of course, I was trying to get a batch file to copy music files from Main Drive to External Drive to transfer to another computer. I have not tried to dump to a file just the album data. Might be possible to do it with fewer steps that way. If you just want to copy the MP3 files do XCOPY source drive target drive *.MP3 /s That would copy every MP3 on the source to the target. If you want to be more selective, start in the directory that has the ones you want to copy. I should have made it clearer, but I was trying to just copy the playlist, which had some tracks from album A, some from B, one from c, two from D, etc. Five hundred entries. I could have used Xcopy for that, but by the time I got to making the above batchfile, I'd found Robocopy. What I wanted to do (originally, long before that project) was to transfers/backup only files which had been changed. What's been changed on this computer, that I need on the other computer (the laptop or for class work). No sense copying 3GB of files when less than 1Mb were changed. Trying to find a way to do that, lead me to Robocopy. Which also lets me delete from the target directory any files which do not exist on the source (because they were deleted, moved, or renamed.) Xcopy is good for copying, but not for 'cleaning up'. That is to say, I would have a lot more files in the target directory, because no "house keeping" got done. The batch file I referenced above, copied a list of files from the source directory to the target directly, provide they did not exist in the target, or the source directory files were "newer" than the one's on the target. I never could find a way to do that in Windows for more than a trivial number of files. Especially when I wanted to copy something with a path several directories deep. D:\Music\ADL Music\Groups G to Q\Artist\Album\track 1.mp3 D:\Music\ADL Music\Compilations\Collected by Song\Song Title\Song_title-track11.mp3 And so forth. Xcopy was my "goto" option till I found Robocopy. It still is my favorite for "uncomplicated" copies. Selective Backups & Synchronization are a different story. Do you know about the XCOPY /M switch and the archive bit? I use a program named File Synchronizer when I am sync'ing drives tho. |
#15
|
|||
|
|||
How to make a text list of files in a folder
|
|
Thread Tools | |
Display Modes | |
|
|