Diasfora

Computer/Technology => Computer => Topic started by: frankcapri on February 26, 2009, 09:22:02 AM

Title: Easy Way to Make a List of Your Files
Post by: frankcapri on February 26, 2009, 09:22:02 AM
Posted this over on Demonoid, and I thought I'd share it here, too  :)

I came across this handy method of making text lists of files

1. Open up notepad. (can use run command "notepad")
2. copy and paste this "dir /b /on > cdlist.txt" without the ""
3. click save as.
4. name it whatever you want, but remember to save it as a .BAT extension!
5. place the .BAT file wherever you want to make a list
6. double click it
7. open cdlist.txt in that folder

It works flawlessly.

This is especially helpful if you're trying to put together a spreadsheet
of what you have.  One drawback is that it creates a text list of whatever
your folders/files are named, so if these aren't labeled properly, it's basically useless to you.

Additionally, if you have a folder with sub-folders, it will not compile a list of what is in those
sub-folders, just the folders themselves.

Even with these drawbacks, I still think it's extremely useful  :)
Title: Re: Easy Way to Make a List of Your Files
Post by: Methiah on February 27, 2009, 01:48:51 PM
To get the sub-directories too use the /s switch in the command. Why use a batch file? just navigate to the directory and enter from the command line (one of those context menu additions "open command window here" if you are lazy in this regard).
Title: Re: Easy Way to Make a List of Your Files
Post by: smokester on February 27, 2009, 02:05:35 PM

Thanks both you guys as I need a method to catalogue files.
Title: Re: Easy Way to Make a List of Your Files
Post by: frankcapri on February 27, 2009, 02:12:15 PM
To get the sub-directories too use the /s switch in the command. Why use a batch file? just navigate to the directory and enter from the command line (one of those context menu additions "open command window here" if you are lazy in this regard).

Because I don't know very much about stuff like this  :D

On Demonoid, GreatWizard linked to this useful program that does all this and more

http://www.portablefreeware.com/?id=1171 (http://www.portablefreeware.com/?id=1171)
Title: Re: Easy Way to Make a List of Your Files
Post by: laama on February 27, 2009, 05:16:51 PM
Thanks for the info.
Title: Re: Easy Way to Make a List of Your Files
Post by: hmed2390 on June 05, 2009, 10:39:51 PM
I realize the date on this thread but I figured I'd post here anyway in regards to listing all contents including subfolders as well as their contents. It virtually lists everything in the folder it's created in,not quite sure if that includes hidden files/folders but it's still the best method I know of.

open notepad, paste
Code: [Select]
tree /f /a >treelisting.txt, save it as.. movies.bat (or whatever) and  save it in which folder you want to make a list then double click it and it'll save a text file there listing things within the folder and sub-folders.

A friend taught me this a while back.
Title: Re: Easy Way to Make a List of Your Files
Post by: dweez on June 05, 2009, 11:43:40 PM
No need to put it in a .bat file.  Just run it in a cmd prompt and it will save the "treelisting.txt" file in whatever folder the cmd prompt is currently in.
Title: Re: Easy Way to Make a List of Your Files
Post by: hmed2390 on June 05, 2009, 11:44:56 PM
Ah, forgot to cut out the "save as .bat". I was copying and pasting this from a a word doc I use as reference. Thanks for pointing that out.  :) Methiah also mentioned that, silly me. :P
Title: Re: Easy Way to Make a List of Your Files
Post by: pandorasquest on June 12, 2009, 02:31:15 PM
thanks guys ..  I'm going to save this whole thread ... very helpful
Title: Re: Easy Way to Make a List of Your Files
Post by: hittz on October 05, 2009, 11:10:12 PM
Because I don't know very much about stuff like this  :D

On Demonoid, GreatWizard linked to this useful program that does all this and more

http://www.portablefreeware.com/?id=1171 (http://www.portablefreeware.com/?id=1171)

I tried the app the above  link refers to and it works well (Thanks for the post Frankcapri), but I cant seem to get the application to number my audio files automatically for a Trackslist. Although I can do it manually after the text file is generated,  Would anyone  know how or if this app can do this automatically?