以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  请问:可否判断某目录是否为空?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=63181)

--  作者:peterx
--  发布时间:2015/1/15 15:26:00
--  请问:可否判断某目录是否为空?
请问:可否判断某目录是否为空?
--  作者:Bin
--  发布时间:2015/1/15 15:32:00
--  
文件夹?


if FileSys.GetFiles("C:\\").count=0 then
   messagebox.show("无文件")
end if

if FileSys.GetDirectories("C:\\").count=0 then
    messagebox.show("无文件夹")
end if