Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
ringo

Folder list to txt

Recommended Posts

I would just create a php and/or javascript page, and let it run. But I doubt you would consider it easy.

Link to post
Share on other sites
7 minutes ago, ringo said:

Is there a easy way to extract folder list to .txt file without messing with DOS programs?

Open a command window and do

 

Dir > output.txt

 

To list every file in every folder do

 

Dir /s > output.txt


Main Rig:-

Ryzen 7 3800X | Asus ROG Strix X570-F Gaming | 16GB Team Group Dark Pro 3600Mhz | Samsung 970 Evo 500GB NVMe | Sapphire 5700 XT Pulse | Corsair H115i Platinum | WD Black 1TB | WD Green 4TB | EVGA SuperNOVA G3 650W | Asus TUF GT501 | Samsung C27HG70 1440p 144hz HDR FreeSync 2 | Windows 10 Pro X64 |

 

Server:-

Raspberry Pi 4 Model B running OMV Arrakis and an 8TB Seagate USB 3.0 external HDD

Link to post
Share on other sites

DIR C:\path\*.* /B /S > c:\temp\filelist.txt

 

/B - bare format, just one file name (including path) on each line without any formatting

/S - go through sub folders

 

Then you can open the file and do a search and replace to remove what you don't want (the path for example, which would show up on each line)...  for example, you can do search for "c:\path\" and replace with ""

 

Total Commander (windows explorer like application but way better) has options in its menu to generate file lists for folders

 

DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
  [/O[[:]sortorder]] [/P] [/Q] [/R] [/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               I  Not content indexed files
               L  Reparse Points             -  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.
  /R          Display alternate data streams 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

 

Link to post
Share on other sites

Sure!
Select your folder's path:

image.png.87b1505c26a0fa31dc3bd541319d7aa4.png

 

> Ctrl + C > go to any browser (chrome) > Ctrl + V > Enter   :

image.png.afd1c63d2e8e529d6b187bfcc5ef3ee2.png

 

select the text > Ctrl + A > Ctrl + C > open new excel sheet > Ctrl + V     :

image.png.37f76008c16c2177716acdbbe9b9985f.png

 

Delete the unnesseccery info and keep just the list: > select it

image.png.8a34937de3faa0ab37524b0afb298ac7.png

> open a .txt file > ctrl + V

image.png.472928ca580674ad5aa44be1c08ca96c.png

 

NOTE: if you want to delete the "/" go back to excel > DATA tab > text to columns > press NEXT > select OTHER > type "/" :

image.png.546cec3fa900cf21e276b34c53a56c70.png

> Next > Finish

 

Go for it! ;)

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×