我自己编了几行代码Dim file As Stringfile = Dir("C:\downloads\BanZou\*.mp3")
Do Until Trim(file) <> NullMsgBox (file)file = DirLoop但是运行到一定时候,就会出现空的文件名,然后VB就出现了问题,条件里明明写了file<>null,怎么回事??
问题自己解决了。。汗Dim file As Stringfile = Dir("C:\downloads\BanZou\*.mp3")
Do while Trim(file) <> ""MsgBox (file)file = DirLoop