# Re: Answer "使用 FileSystemObject 来取得某目录内的所有档案"

Posted by Rong on March 29, 1999 at 20:42:54:

In Reply to: Re: Answer "使用 FileSystemObject 来取得某目录内的所有档案" posted by Spencer Yang on March 28, 1999 at 22:58:52:

: 资料来源: 王国荣编着<>pp.411-412
: Dim fso as New FileSystemObject
: Dim fld as folder
: Dim fim fil as File
: dim strPath as String
: strPath = "c:\"
: set fld = fso.GetFolder(strpath")
: Listview1.view=lvwlist ' 全部显示
: For Each fil In fld.files
: Listview1.ListItem.Add ,, Fil.Name
: Next

我在程式中 Dim fim as File 中的 "File" 的 "F" 会
变成小写的, 这是什么原因呢??
然后这样子都法法读取到档案了!

Follow Ups:

- Re: 错误修正 Spencer Yang 01:22:37 3/30/99 (0)