Display a Directory Tree of all Subdirectories and Files

  http://malektips.com/windows_xp_and_dos_help_and_tips.html

SUMMARY: Display a directory's subdirectories and (optionally) all files contained therein.

 

Ever need to output a list of all the directories and subdirectories on a particular hard drive or removable media? The tree command does just that, and you can pipe the results to a text file for further manipulation or printing.

To view all of the directories and subdirectories on a device, just cd\ to the root of your drive and then execute the tree command. Else, only the subdirectories of the current directory will be displayed.

The following parameters modify the output:

/f

This outputs all files contained in the current directory and subdirectories. Issuing this command from the root directory can show all non-hidden files on the current drive, so the output may be long!

/a

By default, the treecommand uses simple graphics to signify subdirectories. If you are having trouble processing or printing the results, add this parameter to display ASCII characters.

The following example command, executed from the root directory of a hard drive or removable media, creates a text file tree.txt containing all non-hidden files and folders. This may take a while to process, so be patient!

tree /f > tree.txt


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值