Go Back  DVD Talk Forum > General Discussions > Tech Talk
Reload this Page >

how can I make a text list of all the files in a folder?

Tech Talk Discuss PC Hardware, Software, Internet and Other Technology

how can I make a text list of all the files in a folder?

Old 02-09-04, 05:39 PM
  #1  
DVD Talk Limited Edition
Thread Starter
 
Join Date: Jan 2001
Location: Florida
Posts: 5,456
how can I make a text list of all the files in a folder?

Is there a program that will do this for me? I need to send a few dozen word files to someone, but it is really disorganized, so I want to send them the list of all the filenames in the folder, then they can tell me which ones to send.
RoQuEr is offline  
Old 02-09-04, 05:45 PM
  #2  
DVD Talk Hall of Fame
 
Join Date: Nov 1999
Location: Vermont
Posts: 9,771
i always just go to DOS and go to that directory. Then, since I'm not DOS-cool enough to be able to quickly create a document that lists the file names (using the print command), I just type dir (or dir *.doc if I'm only looking for Word docs). Then I select "Mark" from the menu and copy the text that way.

Sounds more complicated than it is by a factor of 10.
stevevt is offline  
Old 02-09-04, 05:46 PM
  #3  
DVD Talk Ultimate Edition
 
Join Date: Aug 2002
Location: Bonney Lake, WA
Posts: 4,276
Are you familiar with using the Ms-dos prompt?

Open it up, go to whatever directory you want to list the files in, and do dir > filelist.txt

That will output file list of that directory to the txt file.

If you want it to be recursive, do a dir /s >filelist.txt
muggins is offline  
Old 02-09-04, 05:48 PM
  #4  
DVD Talk Ultimate Edition
 
Join Date: Aug 2002
Location: Bonney Lake, WA
Posts: 4,276
Here's an example of what the method I use creates (I did dir /s in my pictures directory):

http://s88441235.onlinehome.us/filelist.txt
muggins is offline  
Old 02-09-04, 05:50 PM
  #5  
DVD Talk Hall of Fame
 
Join Date: Nov 1999
Location: Vermont
Posts: 9,771
You probably also want to use the /B (bare) switch

Displays a list of files and subdirectories in a directory.

DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
[/O[[:]sortorder]] [/P] [/Q] [/S] [/T[[:]timefield]] [/W] [/X] [/4]

[drive:][path][filename]
Specifies drive, directory, and/or files to list.

/A Displays files with specified attributes.
attributes D Directories R Read-only files
H Hidden files A Files ready for archiving
S System files - Prefix meaning not
/B Uses bare format (no heading information or summary).
/C Display the thousand separator in file sizes. This is the
default. Use /-C to disable display of separator.
/D Same as wide but files are list sorted by column.
/L Uses lowercase.
/N New long list format where filenames are on the far right.
/O List by files in sorted order.
sortorder N By name (alphabetic) S By size (smallest first)
E By extension (alphabetic) D By date/time (oldest first)
G Group directories first - Prefix to reverse order
/P Pauses after each screenful of information.
/Q Display the owner of the file.
/S Displays files in specified directory and all subdirectories.
/T Controls which time field displayed or used for sorting
timefield C Creation
A Last Access
W Last Written
/W Uses wide list format.
/X This displays the short names generated for non-8dot3 file
names. The format is that of /N with the short name inserted
before the long name. If no short name is present, blanks are
displayed in its place.
/4 Displays four-digit years

Switches may be preset in the DIRCMD environment variable. Override
preset switches by prefixing any switch with - (hyphen)--for example, /-W.
stevevt is offline  
Old 02-09-04, 05:50 PM
  #6  
Suspended
 
Join Date: Mar 2003
Location: 5 Point West Side
Posts: 2,171
Maximize folder w/ files, view in list mode, do a screen capture. Send screen cap.
FuzzyBallz is offline  
Old 02-09-04, 05:53 PM
  #7  
DVD Talk Hall of Fame
 
Join Date: Nov 1999
Location: Vermont
Posts: 9,771
Originally posted by FuzzyBallz
Maximize folder w/ files, view in list mode, do a screen capture. Send screen cap.
The Internet called. It wants its bandwidth back.
stevevt is offline  
Old 02-09-04, 06:10 PM
  #8  
DVD Talk Limited Edition
Thread Starter
 
Join Date: Jan 2001
Location: Florida
Posts: 5,456
lol thanks. I didn't realize that dos actually knew the name of the file beyond the first 6 (or 8, depending) characters.
RoQuEr is offline  
Old 02-09-04, 06:20 PM
  #9  
DVD Talk Legend
 
Join Date: Mar 2002
Location: Santa Clara, California
Posts: 10,138
Powertoys for Win9x had a Send To... extension that did just that. I think it was Send To Clipboard as Name or something like that. I used it for getting lists of my mp3 files.

Unfortunately I couldn't find the same powertoy for WinXP.
shizawn is offline  
Old 02-10-04, 03:45 PM
  #10  
New Member
 
Join Date: Feb 2004
Posts: 14
Using a command prompt, change to the dir that you wish to list the files of i.e. cd\documents

when the prompt displays c:\documents> type in the following:

dir /B >listfiles.txt

This will create a text file in your My Documents directory, listing the contents.

To create the file elsewhere:
dir /B >c:\TheirDocuments\File_list.txt

and that will create the text file in a folder called "TheirDocuments"

The /B switch will remove unwanted dates/times/sizes as you would normally see if you simply ran it as "dir" in the command prompt.

XP DOS should support the long filename.
CrazedTechie is offline  
Old 02-10-04, 03:49 PM
  #11  
DVD Talk Gold Edition
 
Join Date: Jun 1999
Location: Seattle, WA USA
Posts: 2,548
Interestingly, I asked this same question about a week ago: Thread
MitzEclipse is offline  
Old 02-10-04, 04:10 PM
  #12  
New Member
 
Join Date: Feb 2004
Posts: 14
Sorry, wasn't here a week ago!
CrazedTechie is offline  
Old 02-10-04, 04:22 PM
  #13  
DVD Talk Hall of Fame
 
Join Date: Aug 2002
Location: Triangle, NC, USA
Posts: 8,686
There's a freeware program ZDNet created a while back called TreePrint you should be able to find. Prints a text list of directory contents to file or printer. It says it works on Windows 95, Windows 98 and Windows NT 4.0, but I've been using it on Win2000 no problems.
It only works in Windows Explorer, not the little 'My Computer' thing, so you have to open the directories in 'Explorer' to use it. Also shows subdirectories.
Very lite, non-invasive, easy to use program.
http://www.pcmag.com/article2/0,4149,10879,00.asp
tonyc3742 is offline  
Old 02-10-04, 07:00 PM
  #14  
Suspended
 
Join Date: Mar 2003
Location: 5 Point West Side
Posts: 2,171
Originally posted by stevevt
The Internet called. It wants its bandwidth back.
Heh, last time I checked, people have moved over to broadband. Unless of course, you're a bum on food stamp and is still on 14.4K.
FuzzyBallz is offline  
Old 02-10-04, 07:24 PM
  #15  
DVD Talk Gold Edition
 
Join Date: Aug 1999
Location: Chicago, IL
Posts: 2,511
Originally posted by FuzzyBallz
Heh, last time I checked, people have moved over to broadband. Unless of course, you're a bum on food stamp and is still on 14.4K.
No matter how fat your pipe is to the Internet, it's still bandwidth.
Neitzl is offline  
Old 02-10-04, 08:13 PM
  #16  
DVD Talk Hall of Fame
 
Join Date: Nov 1999
Location: Vermont
Posts: 9,771
Originally posted by FuzzyBallz
Heh, last time I checked, people have moved over to broadband. Unless of course, you're a bum on food stamp and is still on 14.4K.
Good point.

Speaking of that, here's that list of files you were looking for.

Last edited by stevevt; 02-10-04 at 08:52 PM.
stevevt is offline  
Old 02-10-04, 08:37 PM
  #17  
DVD Talk Hall of Fame
 
Join Date: Nov 1999
Location: Vermont
Posts: 9,771
Well, I posted a nice little 1.8 MB movie at my spankin new Crapo-cities site, and You People burned through all my bandwidth in less than 20 minutes.

What's the lesson here?


(Working on alternative hosting now. If anyone has some bandwidth for this, let me know.)


EDIT: Alternative hosting found.

Last edited by stevevt; 02-10-04 at 08:53 PM.
stevevt is offline  
Old 02-11-04, 10:37 AM
  #18  
DVD Talk Hall of Fame
 
Join Date: Aug 2002
Location: Triangle, NC, USA
Posts: 8,686
the lesson is, don't rely on Geocities ; )
tonyc3742 is offline  
Old 02-12-04, 11:17 PM
  #19  
DVD Talk Limited Edition
Thread Starter
 
Join Date: Jan 2001
Location: Florida
Posts: 5,456
RoQuEr is offline  
Old 02-14-04, 08:26 PM
  #20  
DVD Talk Gold Edition
 
Join Date: Jul 1999
Location: Orlando, FL
Posts: 2,007
Originally posted by shizawn
Powertoys for Win9x had a Send To... extension that did just that. I think it was Send To Clipboard as Name or something like that.

Unfortunately I couldn't find the same powertoy for WinXP.
The old one for Win 98 works fine. I use it on XP Pro with no problems.
dstrauss is offline  

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Archive Advertising Cookie Policy Privacy Statement Terms of Service

Copyright 2018 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.