wrote:
In the process of rebuilding my data on a new HDD, I want to setup a
similar folder setup like I had on my old drive, which failed.
I have a copy of the old drive, which I saved using a bootable linux
stick.
What I want to do is save the entire file tree as a text file.
I went to that backup and then to the Dos prompt (cmmmand line), and
typed TREE filetree.txt
I was able to save the entire file tree, as text, but all the long
filenames of the folders were truncated as FOLDER~1.
Is there any way to save the LONG folder names?
I'm doing this on Win98, but I would think XP would work the same in
this manner.
I can't promise anything, but you can test pdTree from FreeDOS instead.
I had to use archive.org, because the ibiblio site is so slow.
https://web.archive.org/web/20171115...ml/pdtree.html
The download is 136KB. The download isn't on the archive.org page (grrr),
so I was forced to switch back to this and wait a minute or two for
the download box to appear. I'm on ADSL and I have to
be very very very patient...
http://www.ibiblio.org/pub/micro/pc-...til/pdtree.zip
Inside the ZIP, the binary is only 39,936 bytes.
The manual page for pdTree is here. It has a /S option
to switch it on purpose to short file names. And that
part worked. My test environment isn't returning
short filenames right now, unless I use that option.
http://help.fdos.org/en/hhstndrd/util/pdtree.htm
Programs like this use standard APIs for crawling
a file tree, so my expectation is that this will screw up
just like tree does. It's an OS side problem, not
a utility problem. And someone might have to write
their own directory traversal code to step
around the problem, for all I know.
Paul