找回密码
 加入
搜索
查看: 2405|回复: 6

[AU3基础] FileExists 支不支持通配符*

  [复制链接]
发表于 2012-4-1 12:04:46 | 显示全部楼层 |阅读模式
如题。。。
发表于 2012-4-1 12:14:23 | 显示全部楼层
这么简单的问题自己测试就知道了
发表于 2012-4-1 12:17:51 | 显示全部楼层
If FileExists("C:\*.txt") Then
        MsgBox(4096, 0, "y")
Else
        MsgBox(4096, 0, "no")
EndIf

If FileExists("C:\*r.txt") Then
        MsgBox(4096, 0, "y")
Else
        MsgBox(4096, 0, "no")
EndIf


If FileExists("C:\*.exe") Then
        MsgBox(4096, 0, "y")
Else
        MsgBox(4096, 0, "no")
EndIf
发表于 2012-4-1 16:32:40 | 显示全部楼层
回复 1# suntech

为什么不自己试试那?随便建个文件夹,文件试试.
发表于 2012-4-1 16:44:35 | 显示全部楼层
MsgBox是很好的测试工具
发表于 2012-4-1 23:29:59 | 显示全部楼层
Msgbox Consolewrite 测试时都很好用 要是能像C#一样 可以设置断点 可以实时查看变量值就好了。
发表于 2012-4-2 17:29:30 | 显示全部楼层
同意,Consolewrite 测试时也很好用
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-20 16:49 , Processed in 0.092237 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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