Generate a tree-like script Bat\python\shell

Source: Internet
Author: User

One, bat script:

tree/f >. \treef.txt

Folder PATH List volume serial number is 0003-c23ad:.│  new text Document-copy (2). txt│  New Text document-copy. txt │  new text document. txt │  ├─ folder 1│      new text Document-copy . txt │      new text document. txt │      ├─ folder 2│      new text Document-copy (2). txt│ new Text Document      -copy. txt │      new text document. txt │      ├─ folder 3│      2.txt│      └─ folder 4    │  3.txt    │      └─ new Folder

dir/s >. \dirs.txt

 The volume in drive D is not labeled. The serial number of the volume is the directory of 0003-c23a D:\test 2016/05/10 17:49 <DIR>. 2016/05/10 17:49 <DIR>. 2016/05/10 17:49 <DIR> folders 12016/05/10 17:49 <DIR> folders 22016/05/10 17:49 &LT;DIR&G          T                  Folder 32016/05/10 17:49 <DIR> folder 42016/05/10 17:49 0 New text Document-copy (2). TXT2016/05/10 17:49 0 Create a new text document-a copy. TXT2016/05/10 17:49 0 New text document. txt 3 files 0 bytes D:\ Test\ Directory of folder 1 2016/05/10 17:49 <DIR>. 2016/05/10 17:49 <DIR>:              2016/05/10 17:49 0 Create a new text document-copy. TXT2016/05/10 17:49 0 Create a new text document. txt 2 files Directory of 0 Bytes D:\test\ folder 2 2016/05/10 17:49 <DIR>. 2016/05/10 17:49 <DIR>: 2016/05/10 17:49 0 Create a new text document-copy (2). TXT2016/05/10 17:49 0 New text document-copy. TXT2016/05/10 17:4 9 0 New text document. txt               3 Files 0 Bytes D:\test\ Folder 3 directory 2016/05/10 17:49 <DIR> 2016/05/10 17:49 &lt ;D ir>. 2016/05/10 17:49 0 2.txt 1 Files 0 bytes D:\test\ Folder 4 directory 2016/05/10 17:49 <d ir>. 2016/05/10 17:49 <DIR>.              2016/05/10 17:49 0 3.TXT2016/05/10 17:49 <DIR> new Folder 1 files               0 bytes D:\test\ Folder 4\ new folder directory 2016/05/10 17:49 <DIR>. 2016/05/10 17:49 <DIR>. 0 Files 0 bytes The total number of files listed: 10 files 0 bytes 17 Directories 22,265,397,248 Available Bytes
dir/d >. \dird.txt
The volume in drive D is not labeled. The serial number of the volume is the directory of 0003-c23a D:\test [.]                           [Folder 4] [..]                          New text Document-copy (2). txt[Folder 1]                     new text Document-copy. txt[folder 2]                     Create a new text document. txt[Folder 3]                                    3 files              0 bytes               6 directories 22,265,397,248 Available bytes


Generate a tree-like script Bat\python\shell

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.