Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

All Other Software All Other Software
Search Search
Search for:
Tech Support Guy > > >

Solved: How to convert folder, subfolder and file names into text.


(!)

Ripperdan's Avatar
Ripperdan Ripperdan is offline
Computer Specs
Member with 57 posts.
THREAD STARTER
 
Join Date: Oct 2009
Experience: Intermediate
11-Nov-2009, 01:12 AM #1
Solved: How to convert folder, subfolder and file names into text.
I have a CD with a bunch of folders with a bunch of files and subfolders with a bunch of files on it.

Does anyone know of a free utility to capture those folder and file names into something that I can manipulate (Text, Excel, Word, etc.)? I have found a couple but the ones I found only do 1 layer at a time. I would like to get all the information in a tree structure format.
Squashman's Avatar
Trusted Advisor with 19,648 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
11-Nov-2009, 01:25 AM #2
Have you tried Karen's directory printer?
http://www.karenware.com/powertools/ptdirprn.asp

What do you mean by Tree Structure format?

You can in theory get a directory listing from a cmd prompt as well and redirect the output to a text file.

dir E: /s >filelist.txt
Ripperdan's Avatar
Ripperdan Ripperdan is offline
Computer Specs
Member with 57 posts.
THREAD STARTER
 
Join Date: Oct 2009
Experience: Intermediate
11-Nov-2009, 02:53 AM #3
Solved: How to convert folder, subfolder and file names into text.-tree-structure.jpgThe attached JPG file shows what I mean about tree structure. Something like what you see if you go to "My Documents" and have the "Folders" button on and then click on the + sign so the sub-folders open up.
TheOutcaste's Avatar
Computer Specs
Member with 9,028 posts.
 
Join Date: Aug 2007
Location: Oregon, USA
Experience: Intermediate
11-Nov-2009, 03:04 AM #4
Open Command Prompt
type Tree E: (or what ever the correct drive letter\path is)
Right click the Title bar, point to Edit, Click Select All
Press Enter
open Notepad
Press CTRL+V
stantley's Avatar
Computer Specs
Member with 7,000 posts.
 
Join Date: May 2005
Location: Pittsburgh PA USA
Experience: Advanced
11-Nov-2009, 09:06 AM #5
Quote:
Originally Posted by TheOutcaste View Post
Open Command Prompt
type Tree E: (or what ever the correct drive letter\path is)
Right click the Title bar, point to Edit, Click Select All
Press Enter
open Notepad
Press CTRL+V
I never saw that before, that's pretty cool.

But it looks like you have to use WordPad, the tree stucture shows up as a bunch of boxes in Notepad.

It also looks like there's a limit on the number of characters that show up. Is there anyway around that?


Edit: I got it to work in Notepad, I was using Tahoma, it works OK with Arial.

Last edited by stantley; 11-Nov-2009 at 09:12 AM..
Squashman's Avatar
Trusted Advisor with 19,648 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
11-Nov-2009, 09:57 AM #6
Quote:
Originally Posted by TheOutcaste View Post
Open Command Prompt
type Tree E: (or what ever the correct drive letter\path is)
Right click the Title bar, point to Edit, Click Select All
Press Enter
open Notepad
Press CTRL+V
I totally forgot about the Tree cmd. I guess only the old timers remember that stuff.
throoper's Avatar
Computer Specs
Trusted Advisor with 5,021 posts.
 
Join Date: Jan 2007
Experience: Intermediate
11-Nov-2009, 10:14 AM #7
You'll need the /F switch to also list the files in each subfolder.
Tree Drive: Path /F
Ripperdan's Avatar
Ripperdan Ripperdan is offline
Computer Specs
Member with 57 posts.
THREAD STARTER
 
Join Date: Oct 2009
Experience: Intermediate
11-Nov-2009, 06:42 PM #8
Thank You, Thank You, Thank You. That is exactly what I wanted.

It aslo can be pasted directly into Word and Excel.

Last edited by Ripperdan; 11-Nov-2009 at 06:48 PM..
TheOutcaste's Avatar
Computer Specs
Member with 9,028 posts.
 
Join Date: Aug 2007
Location: Oregon, USA
Experience: Intermediate
12-Nov-2009, 01:28 AM #9
Quote:
Originally Posted by Squashman View Post
I totally forgot about the Tree cmd. I guess only the old timers remember that stuff.
Quote:
Originally Posted by throoper View Post
You'll need the /F switch to also list the files in each subfolder.
Tree Drive: Path /F
Seems this "old timer" forgot the /F switch, thanks throoper

There is also a /A switch that uses ASCII instead of extended characters. This let's you redirect output directly to a text file. Not quite as nice looking, but easy to automate.

Tree E:\ /A /F >"%Userprofile%\Desktop\Tree.txt"
stantley's Avatar
Computer Specs
Member with 7,000 posts.
 
Join Date: May 2005
Location: Pittsburgh PA USA
Experience: Advanced
12-Nov-2009, 07:50 AM #10
Quote:
Originally Posted by TheOutcaste View Post
There is also a /A switch that uses ASCII instead of extended characters. This let's you redirect output directly to a text file. Not quite as nice looking, but easy to automate.

Tree E:\ /A /F >"%Userprofile%\Desktop\Tree.txt"
Thanks, doing it that way you can get all the files on a drive in one text file.
TheOutcaste's Avatar
Computer Specs
Member with 9,028 posts.
 
Join Date: Aug 2007
Location: Oregon, USA
Experience: Intermediate
13-Nov-2009, 02:46 AM #11
Quote:
Originally Posted by stantley View Post
It also looks like there's a limit on the number of characters that show up. Is there anyway around that?
Missed this in my first reading.

The default for the Command Prompt screen buffer is 300 lines. You can increase that to 9999 lines. Which still might not be enough, so redirection is the way to go to be sure you capture all of it.

To change the Screen Buffer size, right click the Title bar of the Command Prompt, click Properties.*
Click the Layout tab
Enter the desired buffer size in the Height: box under Screen Buffer Size.
You can make the windows wider here as well, handy with a wide screen display. I have mine at 150.

*If you click on Default instead of Properties, the settings will apply to all Command Prompt windows you open, unless you've created settings for a particular Command Prompt, either associated with it's name, or the shortcut used to open it.
stantley's Avatar
Computer Specs
Member with 7,000 posts.
 
Join Date: May 2005
Location: Pittsburgh PA USA
Experience: Advanced
13-Nov-2009, 10:58 AM #12
Thanks TheOutcaste, that will indeed come in handy.
TheOutcaste's Avatar
Computer Specs
Member with 9,028 posts.
 
Join Date: Aug 2007
Location: Oregon, USA
Experience: Intermediate
16-Dec-2009, 03:29 PM #13
Just a note, the Tree command doesn't list hidden or system files.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑