ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

generate a text report of all the subfolders and files of a directory

<< < (3/4) > >>

kalos:
Tree.com should be in the windows\system32 folder of your system drive.  Can you try doing the command this way?  Navigate to a folder, then type in:

   %windir%\system32\tree.com /f
-x16wda (May 21, 2012, 03:44 PM)
--- End quote ---

yup, this works! thanks :)

IainB:
In Win7-64bit Home Premium, the "tree" CLI (Command Line Interface) command can be used to do this in 3 different ways. You can produce your file listing in a single command string:

Suppose we want to make a nested tree listing from (say), "C:\Windows\Boot", then we can try it:

* (a) In Windows Explorer: go to the directory where you want to make a nested tree listing from (C:\Windows\Boot), then type into the address line "tree /f", then press the Enter key. Except I haven't figured out how to force the Command window to stay open after the task completes - "/p" for pause doesn't seem to work, neither does piping it into more with "|more" or outputting it to a file with something like ">C:temp\treetest.txt".
* (b) In xplorer²: go to the directory where you want to make a nested tree listing from (C:\Windows\Boot), then type into the address line the "$" prefix, then "tree /f", then press the Enter key. That produces the tree correctly.
* (c) From a Run box: Press Winkey+R, then type "cmd", then the CLI command "cd C:\Windows\Boot", then "tree /f", then press the Enter key. That produces the tree correctly.
A single command string: In both (b) and (c) you can just type in: tree /f /a >C:\temp\treetest.txt, then press the Enter key.
The "/a" switch makes the output in ASCII. The ">" redirects the output to the file "C:\temp\treetest.txt".
(When you print or display the file, ASCII looks clearer/neater than the extended character set that the switch "/f" apparently defaults to.)

Renegade:
Just another way of doing it --- I have a batch script that I've been using for this for quite some time:

http://renegademinds.com/TipsTricks/Dumpfileanddirectoryliststotextfiles/tabid/56/Default.aspx

@echo Directory and sub-directory file listing dump by RenegadeMinds.com.
@echo Visit http://Renegademinds.com for more Windows tips and tricks
@echo and free software applications.
@echo ==================================================================
@echo ==================================================================
@echo Save this file as getDirList.bat in your SendTo directory.
@echo SendTo is under Documents and Settings in each user's directory.
@echo Right-click on any directory in Windows Explorer and choose
@echo Send To - getDirList.bat
@echo ==================================================================
@echo ==================================================================
@echo Dumping directory listing to c:\dirListing.txt
@echo        (This may take some time for large directory trees.)
@REM the /A switch lists all hidden and system files as well.
@REM the /S switch lists all subdirectories and their contents.
@dir %1 /A /S > c:\dirListing.txt
@echo Opening c:\dirListing.txt in Notepad (Close notepad to delete file)
@notepad c:\dirListing.txt
@echo Deleting c:\dirListing.txt
@del c:\dirListing.txt
@pause

--- End quote ---

Directions on using it are at the link. Basically, just add it to the "Send to" menu item, then right-click on a folder.

Curt:
infonautics directory list & print, Free and Pro versions (lifetime key)
Transportable, no installer.

http://www.infonautics.ch/directorylistprint/


click to enlarge:

generate a text report of all the subfolders and files of a directory



Curt:
another well respected family member is Where Is It?, now at version 2012.
$40 lifetime key. http://www.whereisit-soft.com/

WhereIsIt is an application written for Windows operating systems, and designed to help you maintain and organize a catalog of your computer media collection, including CD-ROMs and DVDs, audio CDs, diskettes, removable drives, hard drives, network drives, remote file servers, or any other present or future storage media device Windows can access as a drive.

The primary goal for WhereIsIt is to provide access to the contents of cataloged disks, even when they are not available on the system, or even they are not your own. You can browse their contents, search for files or folders you need, use imported descriptions and thumbnails, organize data using categories and flags etc

WhereIsIt can be used to handle any kind of data, including downloaded programs, magazine CD-ROMs, music collections like MP3s or audio CDs, graphics collections, document backups, etc

--- End quote ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version