Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a folder like:

--Sub Folder 1
  --Sub Sub Folder
--Sub Folder 2

I want to save this file and directory hierarchy and view it later in a different PC. Is there a software or way which will let me do this?

share|improve this question
If you mean a representation of it, then copy and paste from a dir /s in cmd. If you mean the actual files, then copy them to a usb stick. It isn't clear from the question what you want. – Paul Mar 8 '12 at 13:27
@Paul the tree command looks closer to his example. – Bob Mar 8 '12 at 13:31
up vote 4 down vote accepted

You can generate such a listing in Windows through the command tree. To save for future reference, send it to a text file, e.g. tree /f /a > filename.txt. The /f means display files as well as directories. The /a means use ASCII, which can be viewed in Notepad. The default command uses some command prompt extended characters that won't work in most text editors.

The > operator means create a new text file and send the command output there. It will overwrite an existing file. Use >> to append to an existing file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.