找回密码
 加入
搜索
查看: 1735|回复: 1

[系统综合] 关于查找文件的问题

[复制链接]
发表于 2014-5-28 21:58:29 | 显示全部楼层 |阅读模式
Local $hSearch = FileFindFirstFile("c:\11\*.*")
If $hSearch = -1 Then
Exit
EndIf

        While 1
                Local $sFile = FileFindNextFile($hSearch)
                               
                If int(FileGetSize($sFile) / 1024 ) >= 5 Then
                                       
                 MsgBox(4096, "找到的文件:", $sFile)
     
                        Else
                                                Sleep(100)
                EndIf
                WEnd
                 FileClose($hSearch) ; 关闭搜索句柄

没法给整成无限循环啊, 我想的效果是无限循环查找,因为指定目录下的文件会一直在增加,而不是固定的文件。

exit run(@scriptfullpath)   不要这个重启进程的
 楼主| 发表于 2014-5-28 23:29:14 | 显示全部楼层
哎  又自问自答了

Runs()

Func Runs()
        If MsgBox(4,"跳转演示","跳转吗")=6 Then
                jamp()
        Else
                MsgBox(0,0,"未跳转")
        EndIf
EndFunc

Func jamp()
        MsgBox(0,"已经跳转","已经跳转")
EndFunc
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-15 15:58 , Processed in 0.069480 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表