Listing All Files in A Folder


Recommended Posts

Is there anyway of listing all the files in these folders by using some kind of script or program ? If you look at the picture below i want to list all the files in each folder and its sub folders.

Link to comment
Share on other sites

There's a really cool command for the command prompt that will output directories and sub-directories in a cool tree format. I just can't remember it :pinch:

Found:

Tree

Graphically displays the structure of a directory.

Syntax

tree [drive:][path] [/f] [/a]

Parameters

drive:

    Specifies the drive that contains the disk for which you want to display the directory structure.

path

    Specifies the directory for which you want to display the directory structure.

Switches

/f

    Displays the names of the files in each directory.

/a

    Specifies that tree is to use text characters instead of graphic characters to show the lines linking subdirectories. Use this switch with character sets that do not support graphic characters and to send output to printers that don't properly interpret the graphic characters.

Note

The structure that tree displays depends upon the parameters you specify on the command line. If you do not specify a drive or path, tree displays the tree structure beginning with the current directory of the current drive.

Examples

To display the names of all the subdirectories on the disk in your current drive, type the following command:

tree \

To display, one screen at a time, the files in all the directories on drive C, type the following command:

tree c:\ /f | more

To print the same list that the previous example displayed, type the following command:

tree c:\ /f > prn

Related Command

For information about displaying the contents of a directory, see the dir command.

So you can navigate to the directory and type:

Tree

And it'll show folders and sub folders, or you can type:

Tree >Directories.txt

And it will create a file called Directories.txt with the output in (if in Notepad change the font to Terminal)

Link to comment
Share on other sites

dir /s

you can use "dir /s /p" to view it page by page,

or "dir /s > file.txt" to send the output to a file.

like daz said, it's done through the command prompt.

oh, and use "dir /?" to view the rest of the switches. :D

Link to comment
Share on other sites

Another suggestion, if you don't want to do all that is a program called Directory Lister. I don't know where to get it right now, but a google search should just about do it. I think it's free so no worries there.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.