Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • February 13, 2016, 09:56:45 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Create a file list from multiple folders  (Read 10963 times)

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,514
    • View Profile
    • Donate to Member
Create a file list from multiple folders
« on: July 06, 2012, 04:56:12 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: 1,838
    • View Profile
    • Donate to Member

barney

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,281
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #2 on: July 07, 2012, 12:57:58 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.

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,186
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #3 on: July 07, 2012, 02:31:41 AM »
Far less sophisticated, but a quick and easy hack for a recursive text dump of a directory and files:

http://renegademinds...abid/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: Text [Select]
  1. @echo Directory and sub-directory file listing dump by RenegadeMinds.com.
  2. @echo Visit http://Renegademinds.com for more Windows tips and tricks
  3. @echo and free software applications.
  4. @echo ==================================================================
  5. @echo ==================================================================
  6. @echo Save this file as getDirList.bat in your SendTo directory.
  7. @echo SendTo is under Documents and Settings in each user's directory.
  8. @echo Right-click on any directory in Windows Explorer and choose
  9. @echo Send To - getDirList.bat
  10. @echo ==================================================================
  11. @echo ==================================================================
  12. @echo Dumping directory listing to c:\dirListing.txt
  13. @echo        (This may take some time for large directory trees.)
  14. @REM the /A switch lists all hidden and system files as well.
  15. @REM the /S switch lists all subdirectories and their contents.
  16. @dir %1 /A /S > c:\dirListing.txt
  17. @echo Opening c:\dirListing.txt in Notepad (Close notepad to delete file)
  18. @notepad c:\dirListing.txt
  19. @echo Deleting c:\dirListing.txt
  20. @del c:\dirListing.txt
  21. @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

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,514
    • View Profile
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #4 on: July 07, 2012, 04:35:53 AM »
Running to try

Best Regards

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,514
    • View Profile
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #5 on: July 07, 2012, 04:54:41 AM »
This?

http://dirhtml.home....omcast.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

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,202
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #6 on: July 07, 2012, 06:10:12 AM »
Far less sophisticated, but a quick and easy hack for a recursive text dump of a directory and files:

http://renegademinds...abid/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.
« Last Edit: July 24, 2012, 11:53:08 PM by 4wd, Reason: Forgot to neg each attribute :/ »

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,514
    • View Profile
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #7 on: July 07, 2012, 07:12:41 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.

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

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,514
    • View Profile
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #8 on: July 07, 2012, 07:19:49 AM »
Far less sophisticated, but a quick and easy hack for a recursive text dump of a directory and files:

http://renegademinds...abid/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: Text [Select]
  1. @echo Directory and sub-directory file listing dump by RenegadeMinds.com.
  2. @echo Visit http://Renegademinds.com for more Windows tips and tricks
  3. @echo and free software applications.
  4. @echo ==================================================================
  5. @echo ==================================================================
  6. @echo Save this file as getDirList.bat in your SendTo directory.
  7. @echo SendTo is under Documents and Settings in each user's directory.
  8. @echo Right-click on any directory in Windows Explorer and choose
  9. @echo Send To - getDirList.bat
  10. @echo ==================================================================
  11. @echo ==================================================================
  12. @echo Dumping directory listing to c:\dirListing.txt
  13. @echo        (This may take some time for large directory trees.)
  14. @REM the /A switch lists all hidden and system files as well.
  15. @REM the /S switch lists all subdirectories and their contents.
  16. @dir %1 /A /S > c:\dirListing.txt
  17. @echo Opening c:\dirListing.txt in Notepad (Close notepad to delete file)
  18. @notepad c:\dirListing.txt
  19. @echo Deleting c:\dirListing.txt
  20. @del c:\dirListing.txt
  21. @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

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,514
    • View Profile
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #9 on: July 07, 2012, 07:23:02 AM »
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

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,514
    • View Profile
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #10 on: July 07, 2012, 07:51:54 AM »
Far less sophisticated, but a quick and easy hack for a recursive text dump of a directory and files:

http://renegademinds...abid/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: Text [Select]
  1. @echo Directory and sub-directory file listing dump by RenegadeMinds.com.
  2. @echo Visit http://Renegademinds.com for more Windows tips and tricks
  3. @echo and free software applications.
  4. @echo ==================================================================
  5. @echo ==================================================================
  6. @echo Save this file as getDirList.bat in your SendTo directory.
  7. @echo SendTo is under Documents and Settings in each user's directory.
  8. @echo Right-click on any directory in Windows Explorer and choose
  9. @echo Send To - getDirList.bat
  10. @echo ==================================================================
  11. @echo ==================================================================
  12. @echo Dumping directory listing to c:\dirListing.txt
  13. @echo        (This may take some time for large directory trees.)
  14. @REM the /A switch lists all hidden and system files as well.
  15. @REM the /S switch lists all subdirectories and their contents.
  16. @dir %1 /A /S > c:\dirListing.txt
  17. @echo Opening c:\dirListing.txt in Notepad (Close notepad to delete file)
  18. @notepad c:\dirListing.txt
  19. @echo Deleting c:\dirListing.txt
  20. @del c:\dirListing.txt
  21. @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

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,186
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #11 on: July 08, 2012, 11:14:36 AM »
Far less sophisticated, but a quick and easy hack for a recursive text dump of a directory and files:

http://renegademinds...abid/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

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,202
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #12 on: July 08, 2012, 09:49:51 PM »
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.  :-[

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,202
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #13 on: July 24, 2012, 11:48:09 PM »
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.jpgCreate a file list from multiple folders

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.jpgCreate a file list from multiple folders

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

2012-07-25_14-37-04.jpgCreate a file list from multiple folders

You can sort by clicking on the column.

IainB

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 5,693
  • Slartibartfarst
    • View Profile
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #14 on: July 25, 2012, 04:44:31 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, 05:25:39 AM by IainB, Reason: Added YouTube link. »

x16wda

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 639
  • what am I doing in this handbasket?
    • View Profile
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #15 on: July 28, 2012, 06:56:42 AM »
superb trick cyclist video

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