+John Teacake MVC Posted January 5, 2004 MVC Share Posted January 5, 2004 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 More sharing options...
macf13nd Posted January 5, 2004 Share Posted January 5, 2004 if i'm being REALLY dense then just ignore me. i thought thats what explorer did...??? :) Link to comment Share on other sites More sharing options...
+John Teacake MVC Posted January 5, 2004 Author MVC Share Posted January 5, 2004 Yeah but i need some kind of formatted list like a webpage or something of the sort. Link to comment Share on other sites More sharing options...
+John Teacake MVC Posted January 5, 2004 Author MVC Share Posted January 5, 2004 Anyone ? Link to comment Share on other sites More sharing options...
Dazzla Veteran Posted January 5, 2004 Veteran Share Posted January 5, 2004 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: TreeGraphically 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 More sharing options...
thingsforjason Posted January 5, 2004 Share Posted January 5, 2004 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 More sharing options...
+John Teacake MVC Posted January 5, 2004 Author MVC Share Posted January 5, 2004 Thanks Guys :D Thats Great thanks you have saved me a lot of work. Neowin has been my saviour over the past few days. Link to comment Share on other sites More sharing options...
IndianPimp99 Posted January 6, 2004 Share Posted January 6, 2004 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 More sharing options...
Recommended Posts