tree/f>>tree.txt
The above is what I wrote, and then I saved it as a.bat format.
I named this bat as a.bat.
Double-clicking to execute can display the tree structure of all files in the current folder.
D:.
│ a.bat
│ 0401801BackAction.java
│ 0401801CsvAction.java
│ 0401801CsvJavaBean.java
│ 0401801DepotchangeAction.java
│ 0401801DepotchangeJavaBean.java
│ 0401801Form.java
│ 0401801InitAction.java
│ 0401801InitJavaBean.java
│ 0401801PrintAction.java
│ 0401801PrintJavaBean.java
│ 0401801SearchAction.java
│ tree.txt
│
└─0401801
WEE0401801.jsp
But if I change the name of the bat file to tree.bat,
after double-clicking to execute, the content of the newly generated tree.txt file is as follows:
D:\040180>tree/f1>>tree.txt
I don't know what the reason is. Is there any expert who has time to explain it to me, thank you!
!!!
[ Last edited by willsort on 2005-11-30 at 19:54 ]
The above is what I wrote, and then I saved it as a.bat format.
I named this bat as a.bat.
Double-clicking to execute can display the tree structure of all files in the current folder.
D:.
│ a.bat
│ 0401801BackAction.java
│ 0401801CsvAction.java
│ 0401801CsvJavaBean.java
│ 0401801DepotchangeAction.java
│ 0401801DepotchangeJavaBean.java
│ 0401801Form.java
│ 0401801InitAction.java
│ 0401801InitJavaBean.java
│ 0401801PrintAction.java
│ 0401801PrintJavaBean.java
│ 0401801SearchAction.java
│ tree.txt
│
└─0401801
WEE0401801.jsp
But if I change the name of the bat file to tree.bat,
after double-clicking to execute, the content of the newly generated tree.txt file is as follows:
D:\040180>tree/f1>>tree.txt
I don't know what the reason is. Is there any expert who has time to explain it to me, thank you!
!!![ Last edited by willsort on 2005-11-30 at 19:54 ]

