topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday March 28, 2024, 10:56 am
  • Proudly celebrating 15+ 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 22549 times)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Create a file list from multiple folders
« on: July 06, 2012, 04: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,192
    • View Profile
    • Donate to Member

barney

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

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • 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 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

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

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

Best Regards

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #5 on: July 07, 2012, 04:54 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: 5,641
    • View Profile
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #6 on: July 07, 2012, 06:10 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 PM by 4wd, Reason: Forgot to neg each attribute :/ »

Contro

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

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #8 on: July 07, 2012, 07:19 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

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

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

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #10 on: July 07, 2012, 07:51 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

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,288
  • 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 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: 5,641
    • View Profile
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #12 on: July 08, 2012, 09:49 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: 5,641
    • View Profile
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #13 on: July 24, 2012, 11:48 PM »
I was actually writing something to do this but found I didn't need to:

SMF by Kafu

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: 7,540
  • @Slartibartfarst
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Create a file list from multiple folders
« Reply #14 on: July 25, 2012, 04: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, 05:25 AM by IainB, Reason: Added YouTube link. »

x16wda

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

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