Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mapping / Structures of drives...

Status
Not open for further replies.

davidrsutton

Programmer
Oct 6, 2004
94
GB
Hi...

Is there a way that in XP you can produce some kind of map or structure diagram that visually represents the structure of a drive??? I've got a nagging feeling there is but I've no idea how...

Any ideas or suggestions would be greatly appreciated.

Many thanks in advance,

Dave S.

Ps... if I'm making this up and there isn't a way, does anyone know of any little free/shareware software that might do the trick for me.
 
Start > Run > cmd

Once the command window is open:
Code:
cd \

You should be at the C: drive now. This next step may take a while dependent on the amount of files/folders you have... so be patient.
Now type:
Code:
tree /f > tree.txt

This will appear to hang for a minute, but be patient... it has alot of work to do. Once this returns to the prompt, take a look at you new file "tree.txt".

Let us know your results!

X
 
An enhancement to Xaqte's post:
[tt]
tree c:\ /f > tree.txt ::: Lists all folders and files
tree c:\ > tree.txt ::: Lists all folders only
[/tt]
Changing "c:\" to "c:\somefolder" will list contents for the specified folder instead of the whole drive.

Adding a "/a" will draw the "branches" using standard ASCII characters instead of the extended line drawing characters. (Can be useful depending on how you're viewing or printing the file.)

Jeff
[purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day

I was not born cynical - I earned my cynicism through careful observation of the world around me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top