# Re: 如何快速得知某目录内有多少个档案和目录??

Posted by 小v on June 01, 1999 at 09:47:05:

In Reply to: 如何快速得知某目录内有多少个档案和目录?? posted by Rong on June 01, 1999 at 02:40:52:

: 如何快速得知某目录内有多少个档案和目录??

使用DirListBox 和 FileListBox 即可!

例: 得知C:\WIN95下有多少个目录,档案:
DIR1.VISIBLE=FALSE
FILE1.VISIBLE=FALSE
DIR1.PATH="C:\WIN95"
Label1.Caption = Dir1.ListCount 此即目录数
File1.Path = Dir1.Path
File1.filename = "*.*"
Label2.Caption = File1.ListCount 此即档案数

Follow Ups:

- Re: 如何快速得知某目录内有多少个档案和目录?? 小翰 01:29:52 6/02/99 (0)