Hello, I would like to create a directory tree of a folder containing aabout 26000 subfolders and 140000 files. I use the following command:
J:\path\tree /A /F >list.txt
The output of the command looks perfectly fine. However, the directory tree is not complete. The .txt file doesn't list all of the folders. Can you help? And if yes, is there even a way to get the output sorted alphabatically?
Thanks very much in advance,
fox
command is wrong in that it only lists what is below "path" and not what is under j: command would look like so
J:> tree /A /F >list.txt
doing a set dircmd /o:n will sort by name alphabetically.
So you would do your set command and then do the tree commandAnswers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's
"command is wrong in that it only lists what is below "path" and not what is under j:" Depends on what he wants a tree of.
dircmd doesn't seem to do much.
You could:
tree | sort
But then you just get a mangled tree.
To the original point, anybody's guess why the file piped to looks different.
=====================================
Life is too important to be taken seriously.M2
You are right the dircmd command doesn't work in xp or vista. It used to be just a cool env command. Oh well.. Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's
"However, the directory tree is not complete. The .txt file doesn't list all of the folders. Can you help? And if yes, is there even a way to get the output sorted alphabatically?" Any idea of why the tree is not complete? The output of the tree command is exactly what I need...
Thanks for your help,
fox
"However, the directory tree is not complete." What do you use to view the file? If Notepad, it has ha limit to the files it can read.
http://support.microsoft.com/kb/59578Perhaps it is complete, but you just can't see it.
Nigel
Mobo: Asus P7P55D LE
OS: Microsoft Windows 7 Professional OEM
CPU: Core i5 750 @ 2.67 GHz
RAM: Corsair Dominator DHX+ DDR3 1600MH 4GB
GPU: Sapphire 4870 D
That's agood point!
I use Notepad, yes. But I also tried using Word 2007 - doesn't work either...Any ideas?
Thanks very much in advance,
fox
If you can do a dir/b/s and zip up the output somebody xan replicate your structure and try the tree.
=====================================
Life is too important to be taken seriously.M2
I solved the problem by using a programm build to create directory trees...
Thanks!
fox