![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-11-24 00:30 |
47,820 topics / 349,938 posts / today 0 new / 48,298 members |
| DOS批处理 & 脚本技术(批处理室) » [Original] vbs version of Tree |
| Printable Version 3,596 / 23 |
| Floor16 slore | Posted 2010-03-27 19:33 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
Change
on Error Resume Next '容错模式(忽略特殊文件夹错误) to: 'on Error Resume Next '容错模式(忽略特殊文件夹错误) Let's take a look at the prompt message, it is estimated to be a permission issue. |
|
| Floor17 kidzgy | Posted 2010-03-28 11:14 |
| 中级用户 Posts 129 Credits 262 | |
|
I hope all file sizes can be precise to the hundredth place.
For example 218.12MB 1.02GB 35.60KB |
|
| Floor18 jarry0932 | Posted 2010-03-28 11:37 |
| 初级用户 Posts 122 Credits 128 | |
|
Support
|
|
| Floor19 tachyon | Posted 2010-03-28 21:09 |
| 初级用户 Posts 32 Credits 33 | |
|
slore, this VBS cannot complete directory recursion normally on my system. But after looking at the code for a long time, I can't find anything wrong...
|
|
| Floor20 slore | Posted 2010-03-28 22:24 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
Originally posted by tachyon at 2010-3-28 21:09: The code logic is correct... It is estimated that it is a problem with that object. Some folders will inexplicably have no permissions, especially some system folders. |
|
| Floor21 slore | Posted 2010-03-28 22:26 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
Originally posted by kidzgy at 2010-3-28 11:14: Modify the FormatSize function yourself. |
|
| Floor22 kidzgy | Posted 2010-03-29 12:49 |
| 中级用户 Posts 129 Credits 262 | |
|
Sorry, I know nothing about this. Specifically, how to change it? What to replace with what?
|
|
| Floor23 slore | Posted 2010-03-29 13:09 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
```vbnet
Function FormatSize(SZ) Dim i Do While SZ > 1024 i = i + 1 SZ = SZ / 1024 Loop FormatSize = " (" & Round(SZ, 2) & Mid(Unit4Size, 1 + 2 * i, 2) & ")" End Function ``` |
|
| Floor24 kidzgy | Posted 2010-03-29 19:31 |
| 中级用户 Posts 129 Credits 262 | |
|
It's done. Thanks a lot~
|
|
| Prev 1 2 |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |