如何获取某一文件夹下的指定类型的文件以及路径?这里只给出示例代码,供需要的朋友,当然还有我自己参考。 ëY³`
B¬wBnfhot.comÃ<)ÅpÄó
ëY³`
B¬wBnfhot.comÃ<)ÅpÄó
Dim myfileInfos As FileInfo() ëY³`
B¬wBnfhot.comÃ<)ÅpÄó
ëY³`
B¬wBnfhot.comÃ<)ÅpÄó
Dim instance As DirectoryInfo = New DirectoryInfo(“文件夹路径") ëY³`
B¬wBnfhot.comÃ<)ÅpÄó
myfileInfos = instance.GetFiles("*.*") ëY³`
B¬wBnfhot.comÃ<)ÅpÄó
ëY³`
B¬wBnfhot.comÃ<)ÅpÄó
这是一个简单的问题,我这个写法不是最好的,欢迎大家批评指正!ëY³`
B¬wBnfhot.comÃ<)ÅpÄó
学而时习之,不亦说乎?有朋自远方来,不亦乐乎?人不知而不愠,不亦君子乎?
知之为知之,不知为不知,是知也。