Home All Posts Operating System How to export the directory tree of a folder...

How to export the directory tree of a folder to doc

How to export the directory tree of a folder to doc

How to export the directory tree of a folder to doc or txt Step 1. Navigate to your folder and open the Command Prompt The first thing you must do is use the Windows/File Explorer navigate to the folder for which you want to export the directory tree. In our case, that would be “F:\Data”. Open that folder.

How to export the directory tree of a folder to doc or txt

Step 1. Navigate to your folder and open the Command Prompt

The first thing you must do is use the Windows/File Explorer navigate to the folder for which you want to export the directory tree. In our case, that would be “F:\Data”.

Open that folder.

Then, type “cmd” in the address bar of Windows/ File Explorer and press Enter , to open the Command Prompt directly at the folder you are interested in.

Command Prompt instance is opened, pointing to your folder. In our case, the Command Prompt was opened using the “F:\Data” folder, as you can see below.

Step 2. Run the “Tree” command

This is the most important step in our tutorial. To get the hierarchical list of folders and files inside your specified folder, you’ll have to run the “tree” command. In the Command Prompt window, type: “tree /a /f > output.doc”.

Once you made sure that the command is written correctly, press Enter on your keyboard. Depending on how many folders and files are stored inside your folder, running this command can take a moment or two.

Step 3. Get the text file with your directory tree

Now you can safely close the Command Prompt , as you don’t need it anymore. Go back to Windows/File Explorer and navigate to the folder for which you wanted to export the directory tree. Inside, you will find a the new text file with the name you specified in the “tree” command. In our case, this file is named “output.doc”.

Open the output file and the entire directory tree is listed inside. It looks good, doesn’t it?

 

Related posts

Winaero Tweaker

Winaero Tweaker

After years of development, I decided to release an all-in-one application which will include most options available in my free Winaero apps and...

  • Install social plugin that has it's own SHORTCODE and add it to Theme Options - Socials - 'Login via Social network' field. We recommend: Wordpress Social Login
Minimum 6 characters