DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Create a file list from multiple folders  (Read 28,433 times)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Create a file list from multiple folders
« on: July 06, 2012, 09:56 PM »
Create a file list from multiple folders

I would like a soft for propose the folders.
Then I can obtain a list with the files sorted :

by creation or modification date
by alphabetical order

Not include the system files
Include de subfolders contained in the proposed folders.

Best Regards
:-*

rgdot

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2,197
Re: Create a file list from multiple folders
« Reply #1 on: July 07, 2012, 03:56 AM »
This?

http://dirhtml.home.comcast.net/~dirhtml/

barney

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,294
Re: Create a file list from multiple folders
« Reply #2 on: July 07, 2012, 05:57 AM »
I'm not certain I understand all your requirements, but you might take a look at the late Karen Kenworthy's Directory Printer.  It's extremely flexible.  I use it frequently to create CSV files for folders/subfolders content.  It's a VB6 program, so if you're using windows, you prolly have all the necessaries already installed.
Make a good day ... barn

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Create a file list from multiple folders
« Reply #3 on: July 07, 2012, 07:31 AM »
Far less sophisticated, but a quick and easy hack for a recursive text dump of a directory and files:

http://renegademinds.com/TipsTricks/Dumpfileanddirectoryliststotextfiles/tabid/56/Default.aspx

Quote
Dump file and directory lists to text files

Need a complete list of files and directories from Windows? Don't feel like typing them manually? Here's the answer...

The following is a batch file that runs under command.exe or cmd.exe, depending upon whether you are using Windows 9x/Me or Windows NT/2000/XP/2003. Copy the file contents then save it in your SendTo directory as getDirListing.bat. In Windows NT/2000/XP/2003 the SendTo directory is in <DRIVE>:\Documents and Settings\<YOUR WINDOWS LOGIN>\SendTo.

Code: (generic)
@echo Directory and sub-directory file listing dump by RenegadeMinds.com.
@echo Visit http://Renegademinds.com for more Windows tips and tricks 
@echo and free software applications.
@echo ==================================================================
@echo ==================================================================
@echo Save this file as getDirList.bat in your SendTo directory.
@echo SendTo is under Documents and Settings in each user's directory.
@echo Right-click on any directory in Windows Explorer and choose
@echo Send To - getDirList.bat
@echo ==================================================================
@echo ==================================================================
@echo Dumping directory listing to c:\dirListing.txt
@echo        (This may take some time for large directory trees.)
@REM the /A switch lists all hidden and system files as well.
@REM the /S switch lists all subdirectories and their contents.
@dir %1 /A /S > c:\dirListing.txt
@echo Opening c:\dirListing.txt in Notepad (Close notepad to delete file)
@notepad c:\dirListing.txt
@echo Deleting c:\dirListing.txt
@del c:\dirListing.txt
@pause

Right-click on any directory and choose SendTo > getDirListing.bat.

Cheers,

Renegade

It goes in the "Send to" menu in your context menu.

But like I said, far less sophisticated. The only real benefit is that it is fast, easy, and you don't need to bother opening any software for it.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Create a file list from multiple folders
« Reply #4 on: July 07, 2012, 09:35 AM »
Running to try

Best Regards

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Create a file list from multiple folders
« Reply #5 on: July 07, 2012, 09:54 AM »
This?

http://dirhtml.home.comcast.net/~dirhtml/

I see only give the possibility to choose one folder (and his subfolders). Is it correct ?

I would in F4 the possibility to choose more than one folder.

Best Regards

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: Create a file list from multiple folders
« Reply #6 on: July 07, 2012, 11:10 AM »
Far less sophisticated, but a quick and easy hack for a recursive text dump of a directory and files:

http://renegademinds.com/TipsTricks/Dumpfileanddirectoryliststotextfiles/tabid/56/Default.aspx

You'd need a separate batch file for each case and change the dir command in each:

@dir %1 /A-s-h-d /S /on /b > c:\dirListing.txt         ** For sorted by Name with no Folders or System/Hidden files
@dir %1 /A-s-h-d /S /od /tc /b > c:\dirListing.txt    ** For sorted by Creation Date with no Folders or System/Hidden
@dir %1 /A-s-h-d /S /od /tw /b > c:\dirListing.txt    ** For sorted by Last Written, (Modified), with no Folders or System/Hidden

Use /o-n or /o-d to reverse the sort order.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903
« Last Edit: July 25, 2012, 04:53 AM by 4wd »

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Create a file list from multiple folders
« Reply #7 on: July 07, 2012, 12:12 PM »
I'm not certain I understand all your requirements, but you might take a look at the late Karen Kenworthy's Directory Printer.  It's extremely flexible.  I use it frequently to create CSV files for folders/subfolders content.  It's a VB6 program, so if you're using windows, you prolly have all the necessaries already installed.

I think i have the same problem. I can't select only one folder (and its subfolders), but I don't see how to select several folders in differents hard drives.

Best Regards

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Create a file list from multiple folders
« Reply #8 on: July 07, 2012, 12:19 PM »
Far less sophisticated, but a quick and easy hack for a recursive text dump of a directory and files:

http://renegademinds.com/TipsTricks/Dumpfileanddirectoryliststotextfiles/tabid/56/Default.aspx

Quote
Dump file and directory lists to text files

Need a complete list of files and directories from Windows? Don't feel like typing them manually? Here's the answer...

The following is a batch file that runs under command.exe or cmd.exe, depending upon whether you are using Windows 9x/Me or Windows NT/2000/XP/2003. Copy the file contents then save it in your SendTo directory as getDirListing.bat. In Windows NT/2000/XP/2003 the SendTo directory is in <DRIVE>:\Documents and Settings\<YOUR WINDOWS LOGIN>\SendTo.

Code: (generic)
@echo Directory and sub-directory file listing dump by RenegadeMinds.com.
@echo Visit http://Renegademinds.com for more Windows tips and tricks 
@echo and free software applications.
@echo ==================================================================
@echo ==================================================================
@echo Save this file as getDirList.bat in your SendTo directory.
@echo SendTo is under Documents and Settings in each user's directory.
@echo Right-click on any directory in Windows Explorer and choose
@echo Send To - getDirList.bat
@echo ==================================================================
@echo ==================================================================
@echo Dumping directory listing to c:\dirListing.txt
@echo        (This may take some time for large directory trees.)
@REM the /A switch lists all hidden and system files as well.
@REM the /S switch lists all subdirectories and their contents.
@dir %1 /A /S > c:\dirListing.txt
@echo Opening c:\dirListing.txt in Notepad (Close notepad to delete file)
@notepad c:\dirListing.txt
@echo Deleting c:\dirListing.txt
@del c:\dirListing.txt
@pause

Right-click on any directory and choose SendTo > getDirListing.bat.

Cheers,

Renegade

It goes in the "Send to" menu in your context menu.

But like I said, far less sophisticated. The only real benefit is that it is fast, easy, and you don't need to bother opening any software for it.

I can't filter ?

I have too many hard drives and some 2 Tb.

Best Regards

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Create a file list from multiple folders
« Reply #9 on: July 07, 2012, 12:23 PM »
I would like only files , not shortcuts inside subfolders
only folder and subfolders
and the file names sorted
But all the folders in several hard drives please.

:-[
Best Regards

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Create a file list from multiple folders
« Reply #10 on: July 07, 2012, 12:51 PM »
Far less sophisticated, but a quick and easy hack for a recursive text dump of a directory and files:

http://renegademinds.com/TipsTricks/Dumpfileanddirectoryliststotextfiles/tabid/56/Default.aspx

Quote
Dump file and directory lists to text files

Need a complete list of files and directories from Windows? Don't feel like typing them manually? Here's the answer...

The following is a batch file that runs under command.exe or cmd.exe, depending upon whether you are using Windows 9x/Me or Windows NT/2000/XP/2003. Copy the file contents then save it in your SendTo directory as getDirListing.bat. In Windows NT/2000/XP/2003 the SendTo directory is in <DRIVE>:\Documents and Settings\<YOUR WINDOWS LOGIN>\SendTo.

Code: (generic)
@echo Directory and sub-directory file listing dump by RenegadeMinds.com.
@echo Visit http://Renegademinds.com for more Windows tips and tricks 
@echo and free software applications.
@echo ==================================================================
@echo ==================================================================
@echo Save this file as getDirList.bat in your SendTo directory.
@echo SendTo is under Documents and Settings in each user's directory.
@echo Right-click on any directory in Windows Explorer and choose
@echo Send To - getDirList.bat
@echo ==================================================================
@echo ==================================================================
@echo Dumping directory listing to c:\dirListing.txt
@echo        (This may take some time for large directory trees.)
@REM the /A switch lists all hidden and system files as well.
@REM the /S switch lists all subdirectories and their contents.
@dir %1 /A /S > c:\dirListing.txt
@echo Opening c:\dirListing.txt in Notepad (Close notepad to delete file)
@notepad c:\dirListing.txt
@echo Deleting c:\dirListing.txt
@del c:\dirListing.txt
@pause

Right-click on any directory and choose SendTo > getDirListing.bat.

Cheers,

Renegade

It goes in the "Send to" menu in your context menu.

But like I said, far less sophisticated. The only real benefit is that it is fast, easy, and you don't need to bother opening any software for it.

Renegade thanks for the application email avenger. I was looking for the application.

Best Regards

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Create a file list from multiple folders
« Reply #11 on: July 08, 2012, 04:14 PM »
Far less sophisticated, but a quick and easy hack for a recursive text dump of a directory and files:

http://renegademinds.com/TipsTricks/Dumpfileanddirectoryliststotextfiles/tabid/56/Default.aspx

You'd need a separate batch file for each case and change the dir command in each:

@dir %1 /A-shd /S /on /b > c:\dirListing.txt        ** For sorted by Name with no Folders or System/Hidden files
@dir %1 /A-shd /S /od /tc /b > c:\dirListing.txt    ** For sorted by Creation Date with no Folders or System/Hidden
@dir %1 /A-shd /S /od /tw /b > c:\dirListing.txt    ** For sorted by Last Written, (Modified), with no Folders or System/Hidden

Use /o-n or /o-d to reverse the sort order.

I never sort as the default is fine for what I need, but thanks for that!  :Thmbsup:

I can't filter ?

I have too many hard drives and some 2 Tb.

You just right-click on a folder, so you don't need to do EVERYTHING. Cripes... that would take forever... :(



Renegade thanks for the application email avenger. I was looking for the application.

It's a bit dated now. :( Likely doesn't work as well as when I wrote it.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: Create a file list from multiple folders
« Reply #12 on: July 09, 2012, 02:49 AM »
You'd need a separate batch file for each case and change the dir command in each:

@dir %1 /A-shd /S /on /b > c:\dirListing.txt         ** For sorted by Name with no Folders or System/Hidden files
@dir %1 /A-shd /S /od /tc /b > c:\dirListing.txt    ** For sorted by Creation Date with no Folders or System/Hidden
@dir %1 /A-shd /S /od /tw /b > c:\dirListing.txt    ** For sorted by Last Written, (Modified), with no Folders or System/Hidden

Use /o-n or /o-d to reverse the sort order.

I never sort as the default is fine for what I need, but thanks for that!  :Thmbsup:

I screwed up, it's /A-s-h-d to exclude System/Hidden/Directories - I forgot you had to neg each one.  :-[
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: Create a file list from multiple folders
« Reply #13 on: July 25, 2012, 04:48 AM »
I was actually writing something to do this but found I didn't need to:

SMF by Kafu

Quote
It has excessive search filter capabilities and a SQLite driven result reporting tool, with which you can sub-filter the results according to your needs.

111021_smf_search_my_files_1_medium.jpg

It's fast and it does indeed have excessive filtering - a universe ahead of anything I could have written :)

2012-07-25_14-31-30.jpg

1. Select your directories
2. Specify any filename filtering and check the Attributes, Date Created/Modified.
3. Click Pre-filter files.
4. Uncheck System, Hidden, Directory, etc.
5. Click Search.

2012-07-25_14-34-11.jpg

6. Click Show report and again on the next window.

2012-07-25_14-37-04.jpg

You can sort by clicking on the column.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

IainB

  • @Slartibartfarst
  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,544
Re: Create a file list from multiple folders
« Reply #14 on: July 25, 2012, 09:44 AM »
@4wd: Thanks for the link - looks like an interesting find in its own right, as well as being a possible solution to the problem posed by @Contro.     :Thmbsup:
Downloading it now...

EDIT 2012-07-25 2219hrs: I took a look around that website - http://funk.eu/.
Very interesting software and other stuff - e.g., on the blog, a link to this superb trick cyclist video:

« Last Edit: July 25, 2012, 10:25 AM by IainB »

x16wda

  • what am I doing in this handbasket?
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 888
    • Participated in NANY Challenge Once
Re: Create a file list from multiple folders
« Reply #15 on: July 28, 2012, 11:56 AM »
superb trick cyclist video

My goodness!  That's someone who is one with his bike!
vi vi vi - editor of the beast

Original address: https://www.donationcoder.com/forum/index.php?topic=31520.0