huge directory tree - DOS

Microsoft Windows xp professional w/serv...
January 13, 2011 at 09:45:30
Specs: Windows XP
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


See More: huge directory tree - DOS

Report •

#1
January 13, 2011 at 10:51:06
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 command

Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's


Report •

#2
January 13, 2011 at 11:46:04
"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


Report •

#3
January 13, 2011 at 15:52:14
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


Report •

Related Solutions

#4
January 14, 2011 at 01:52:20
"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


Report •

#5
January 14, 2011 at 16:31:54
"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/59578

Perhaps 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


Report •

#6
January 18, 2011 at 02:19:12
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


Report •

#7
January 18, 2011 at 02:57:45
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


Report •

#8
January 19, 2011 at 01:02:26
I solved the problem by using a programm build to create directory trees...
Thanks!
fox

Report •

#9
August 5, 2011 at 20:04:09
What program did you get? Has it worked well for you?

Report •

Ask Question