举报
If DirGetSize('目录') = 0 then msgbox(0,0,'空')
If DirGetSize('目录') = 0 then msgbox(0,0,'空') afan 发表于 2009-9-13 14:31
$a = DirGetSize('目录', 1) If Not @error Then If $a[0] = 0 And $a[2] = 0 then msgbox(0,0,'非常空,真空') Endif
_emtyfolder("D:\jhwl") Func _emtyfolder($searchdir) $search = FileFindFirstFile($searchdir & "\*.*") If $search = -1 Then MsgBox(0, "", $searchdir & @CRLF&"=>此目录为空") While 1 $file = FileFindNextFile($search) If @error Then FileClose($search) Return ElseIf $file = "." Or $file = ".." Then ContinueLoop Else _emtyfolder($searchdir & "" & $file) EndIf WEnd EndFunc ;==>_emtyfolder
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-5-7 17:16 , Processed in 0.086664 second(s), 20 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2025 Discuz! Team.