digip Posted March 4, 2007 Share Posted March 4, 2007 Ok, I checked google for this and didn't find what I was looking for. Lots of info on TREE command and what it does, but I want to output it to a text file. The problem is it leaves the ascii text in the text file, but what I wanted to know is there a way to convert it to lines, or underscores to be viweable in something like a plain text editor. Here is what I am doing from a command prompt: TREE c: > DriveTree.txt It creates the text file ok, but its garbled data and makes it hard to read. The reason I am doing this is I want a quick way to copy a drives structure to things like a usb key, etc. but I would probably end up just using the DIR command to list the directories instead since this is almost unreadable in plain text. I just like the tree layout and how it looked though. Would make a nice image file to print out as well. Here is what it looks like in a command window. Anyone have any idea how to write it out so it would look the same in a text file or some other document format? Quote Link to comment Share on other sites More sharing options...
VaKo Posted March 4, 2007 Share Posted March 4, 2007 try "edit tree.txt" or install MS Services for Unix and use the cat command. Quote Link to comment Share on other sites More sharing options...
digip Posted March 4, 2007 Author Share Posted March 4, 2007 Nevermind. Just figured it out. You use /A to remove the ascii text when switching (>) output to a text file. EX: TREE C: /A > Tree.txt Sorry. I looked all over and then I remember the old /? to get the help file from dos commands. Should have checked there first, but didn't think of it at the time. Quote Link to comment Share on other sites More sharing options...
SomeoneE1se Posted March 4, 2007 Share Posted March 4, 2007 Very cool I'll have to use this... Quote Link to comment Share on other sites More sharing options...
digip Posted March 4, 2007 Author Share Posted March 4, 2007 Very cool I'll have to use this... TREE /? lists the help file. Pretty dumb I didn't think of it until after I checked google... Quote Link to comment Share on other sites More sharing options...
Darren Kitchen Posted March 4, 2007 Share Posted March 4, 2007 Ahh tree, the best command to run when you're boss walks in. Instant "I'm doing something important go the F* away" Quote Link to comment Share on other sites More sharing options...
DLSS Posted March 5, 2007 Share Posted March 5, 2007 64 bit doesnt have a tree :cry: doesn't have edit either :cry: Quote Link to comment Share on other sites More sharing options...
tanda333 Posted April 18, 2007 Share Posted April 18, 2007 i just tried, this is pretty neat, i woulda never thoughta saving the tree command's results. then again, i thought i would never see a dos-like prompt ever since i sold all my dos games.... and the fact that it is oddly satisfying.... anyways... this'll be great to convince my programming teacher, who despite his title, knows very little about computers and manipulating them, that im doing work, so he wont assign me new projects cuz i just finished the last one in record time. i'm VERY good at programming class. Quote Link to comment Share on other sites More sharing options...
Deveant Posted April 18, 2007 Share Posted April 18, 2007 64 bit doesnt have a tree :cry: doesn't have edit either :cry: 64 Vista Home Premium does :S Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.