The tree command

Ron McIntosh 21 Reputation points
2022-12-17T04:00:52.833+00:00

The tree command within CMD does not allow the output to be redirected to a file. The error message is too many parameters. How do I redirect the output to a file?

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 90,521 Reputation points
    2022-12-17T08:47:52.38+00:00

    This test works for me :

    tree e:\temp > e:\temp\tree.txt  
    
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Ron McIntosh 21 Reputation points
    2022-12-18T09:31:09.53+00:00

    Hi Castorix31

    I tried the following

    tree c:\temp1 > c:\temp1\tree.txt

    and the output into temp1 was

    Folder PATH listing
    Volume serial number is 000000EB 4422:F153
    C:\TEMP1
    No subfolders exist


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.