A Windows XP help forum. PCbanter

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.

Go Back   Home » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to make a text list of files in a folder



 
 
Thread Tools Display Modes
  #1  
Old October 19th 16, 10:14 PM posted to microsoft.public.windowsxp.general
No_Name
external usenet poster
 
Posts: 57
Default 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
  #3  
Old October 20th 16, 01:19 AM posted to microsoft.public.windowsxp.general
Dave Doe
external usenet poster
 
Posts: 481
Default How to make a text list of files in a folder

In article ,
, Barry Schwarz says...

From a command prompt, issue the command
dir /?
and learn about all the options (particularly /s) available to you.


and /N (list long filenames)

--
Duncan.
  #4  
Old October 20th 16, 01:28 AM posted to microsoft.public.windowsxp.general
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default How to make a text list of files in a folder

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...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
  #5  
Old October 20th 16, 01:50 AM posted to microsoft.public.windowsxp.general
JT[_6_]
external usenet poster
 
Posts: 77
Default 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

--

  #7  
Old October 20th 16, 05:30 AM posted to microsoft.public.windowsxp.general
No_Name
external usenet poster
 
Posts: 57
Default 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  
Old October 20th 16, 07:11 AM posted to microsoft.public.windowsxp.general
R.Wieser
external usenet poster
 
Posts: 1,302
Default 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  
Old October 20th 16, 09:11 AM posted to microsoft.public.windowsxp.general
Ammammata
external usenet poster
 
Posts: 209
Default 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  
Old October 20th 16, 02:33 PM posted to microsoft.public.windowsxp.general
John Dulak[_2_]
external usenet poster
 
Posts: 61
Default How to make a text list of files in a folder

On 10/20/2016 12:30 AM, wrote:


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?


You could always put the command lines into a batch file, store it someplace and
create a shortcut to it.

John

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.





--
\\\||///
------------------o000----(o)(o)----000o----------------
----------------------------()--------------------------
'' Madness takes its toll - Please have exact change. ''

  #11  
Old October 20th 16, 04:47 PM posted to microsoft.public.windowsxp.general
pyotr filipivich
external usenet poster
 
Posts: 752
Default 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  
Old October 20th 16, 05:37 PM posted to microsoft.public.windowsxp.general
No_Name
external usenet poster
 
Posts: 627
Default 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  
Old October 21st 16, 05:26 PM posted to microsoft.public.windowsxp.general
pyotr filipivich
external usenet poster
 
Posts: 752
Default How to make a text list of files in a folder

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.

--
pyotr filipivich
Next month's Panel: Graft - Boon or blessing?
  #14  
Old October 21st 16, 06:00 PM posted to microsoft.public.windowsxp.general
No_Name
external usenet poster
 
Posts: 627
Default 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  
Old October 21st 16, 08:36 PM posted to microsoft.public.windowsxp.general
pyotr filipivich
external usenet poster
 
Posts: 752
Default How to make a text list of files in a folder

on Fri, 21 Oct 2016 13:00:32 -0400 typed in
microsoft.public.windowsxp.general the following:
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?


Yeah. But if I renamed Fiel1 to File1 - I now had Fiel1 and File1
on the target. That was part of my issue.

I use a program named File Synchronizer when I am sync'ing drives tho.


I was using something, but the back up drives are packed away, so
it has been a while. "Living dangerously.! Rip the tags off of
mattresses, I do!"
--
pyotr filipivich
Next month's Panel: Graft - Boon or blessing?
 




Thread Tools
Display Modes

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

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






All times are GMT +1. The time now is 02:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.