举报
; 显示当前目录下的所有文件的文件名,注意有返回 "." 和 ".." $search = FileFindFirstFile("*.*") ; 检查搜索是否成功 If $search = -1 Then MsgBox(0, "错误", "无任何文件或文件夹与指定的搜索字符串匹配") Exit EndIf While 1 $file = FileFindNextFile($search) If @error Then ExitLoop MsgBox(4096, "文件:", $file) WEnd ; 关闭搜索句柄 FileClose($search)
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-3-15 02:06 , Processed in 0.124399 second(s), 17 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2025 Discuz! Team.