标签: vb.net file directory
由于某种原因,以下代码不起作用:
Dim images = System.IO.Directory.GetFiles(Application.StartupPath, IO.SearchOption.AllDirectories, "*.jpg")
它应该从\bin\debug文件夹中获取所有.jpg图像,但它会引发错误:
\bin\debug
Conversion from string "*.jpg" to type 'Integer' is not valid.
我做错了什么?