suntech 发表于 2012-4-1 12:04:46

FileExists 支不支持通配符*

如题。。。

my788522 发表于 2012-4-1 12:14:23

这么简单的问题自己测试就知道了

80ren 发表于 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

lixiaolong 发表于 2012-4-1 16:32:40

回复 1# suntech

为什么不自己试试那?随便建个文件夹,文件试试.

whitehead 发表于 2012-4-1 16:44:35

MsgBox是很好的测试工具

zch11230 发表于 2012-4-1 23:29:59

Msgbox Consolewrite 测试时都很好用 要是能像C#一样 可以设置断点 可以实时查看变量值就好了。

whitehead 发表于 2012-4-2 17:29:30

同意,Consolewrite 测试时也很好用
页: [1]
查看完整版本: FileExists 支不支持通配符*