Share via

Win 7, How to print list of folders and subdirectories

Anonymous
2012-04-14T02:09:07+00:00

Would like to print a list of folders, subdirectories and files.  See a suggestion to use the command line and some old DOS method.  Couldn't get that to work.  If nothing within Win 7 is there a free or paid for third party program that will accomplish what I need.  Can't believe there is nothing better within Win 7 than some old DOS option.

Windows for home | Previous Windows versions | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Anonymous
    2012-04-14T15:48:21+00:00

    On Sat, 14 Apr 2012 02:09:07 +0000, berol wrote:

    Would like to print a list of folders, subdirectories and files.  See a suggestion to use the command line and some old DOS method.  Couldn't get that to work.  If nothing within Win 7 is there a free or paid for third party program that will accomplish what I need.  Can't believe there is nothing better within Win 7 than some old DOS option.

    Here are five ways:

    1. Select all the files, press and hold the shift key, then
      right-click and select Copy as path. This copies the list of file
      names to the clipboard.

    Paste the results into any document such as a txt or doc file & print
    that.

    1. Go to a command prompt and issue the command
      dir [drive:folder] > c:\tempfilename (you can use any name and put it
      in any folder you want) Then open notepad, open tempfilename, and
      print it from there.
    2. Write (for example in Notepad) a 1-line text file:
      DIR %1 /O >LPT1:

    Save it as "printdir.bat" in the "Send To" folder.

    Then, to print list of files in any folder, right-click that folder
    and select Send to | printdir.bat

    To include subfolders, change the command to DIR %1 /O/S >LPT1:

    1. Go to
      http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q321379 and
      follow the instructions there.
    2. Download and use any of the several freeware/shareware utilities
      that can do this, such as the popular
      http://www.karenware.com/powertools/ptdirprn.asp

    Ken Blake, Microsoft MVP

    10+ people found this answer helpful.
    0 comments No comments

Answer accepted by question author

  1. Anonymous
    2012-04-14T02:58:05+00:00

    Hi,

    These should help :

    How to Save and Print a Directory List for a File and Folder in Vista (Windows 7 is the

    same)

    http://www.vistax64.com/tutorials/114593-file-folder-directory-list-print-save.html

    How to Add View and Print File Directory to the Context Menu in Vista and Windows 7

    http://www.vistax64.com/tutorials/146031-context-menu-add-view-print-file-directory.html

    Use this free program which is excellent :

    KarenWare - Directory Printer - Free

    http://www.karenware.com/powertools/ptdirprn.asp

    How to add the Print Directory feature for folders in Windows XP, in Windows Vista, or in Windows 7

    http://support.microsoft.com/default.aspx/kb/321379

    Hope this helps.


    Rob Brown - Microsoft MVP <- profile - Windows Expert - Consumer : Bicycle <- Mark Twain said it right.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2015-01-20T23:46:59+00:00
    1. Start menu,
    2. In the search box, type CMD and enter
    3. Navigate to the location where you want to get a list of folders and sub directories using cd, c:, cd "Folder name"
    4. Type in "tree > tree.txt"
    5. Open Excel
    6. Open the "tree.txt" file that you created in step 4 which is located in the location where you want a list of folders and sub folders.
    7. You'll notice a bunch of annoying characters e.g. "Ä"and "³"  , to get rid of them, ctrl f and select replace, put in "Ä" for find and nothing in replace and then select "Replace all". For "³" characters, I replaced them with ">".

    This gives a list of all folders and sub folders.

    10 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2014-07-16T20:38:55+00:00

    I found a SIMPLE way that is similar to cut and paste.

    First, if you do not already have Snipping Tool on your start menu, simply do the following:

    Click "Start Button"

    Click "All Programs"

    Click "Accessories"

    Right Click on "Snipping Tool"  (It is a picture of scissors)

    Click on "Pin to Start Menu"

    This should give you the snipping tool icon on lower start menu bar.

    Go to your list of folders you want to copy.

    In the upper right hand corner, there is a "change your view" icon,   click the down arrow and select "List". This will enable your folders to show on one page.

    Click on your Snipping Tool icon on bottom start up bar.

    Drag your cursor around the list of your folders (much like a crop tool).

    At the top of your snipping tool bar, click "Copy".

    Paste this into a new word document.

    Voila.

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2016-12-18T18:03:44+00:00

    "You'll notice a bunch of annoying characters e.g. "Ä"and "³"  , to get rid of them, ctrl f and select replace, put in "Ä" for find and nothing in replace and then select "Replace all". For "³" characters, I replaced them with ">".

    This gives a list of all folders and sub folders.

    Excellent suggestion and the one I'm saving for future reference, works great for what I'm trying to do at the moment.

    But to add to Kurt's excellent suggestion, you could add the following switches to the "tree" command to print more user friendly characters:

    tree /a > tree.txt

    /a - Specifies that TREE is to use text characters instead of graphic characters, great if you just want to open this in your favorite text editor without the funky characters.

    To get subdirectories and filenames:

    tree /a /f > tree.txt

    /f - Displays the names of the files in each directory.

    Hope this helps someone else :)

    Deuces,

    Big Dave

    1 person found this answer helpful.
    0 comments No comments