web analytics

DOS Command: Tree.exe - List All Files and Folders in a Directory

Options

davegate 143 - 921
@2015-12-22 10:06:59

DOS command tree.exe can generate a list of every folder and file that is in a particular directory. The following example shows how to create such a list for D:\MyNotes folder:

1. Open Command Prompt window, and go the directory D:\MyNotes.

2. Type the following command

tree d:\mynotes /F > treeview.txt

This command lists all the folders and files in the folder d:\mynotes, and save the output into a text file treeview.txt

3. Open the treeview.txt in any Text Editor:

Comments

You must Sign In to comment on this topic.


© 2024 Digcode.com