如何从文件夹中获取.pdf扩展文件 [英] how to get the .pdf extension files from the folder
本文介绍了如何从文件夹中获取.pdf扩展文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友,
早上好..plz帮帮我..
文件夹包含扩展名为.pdf和.xml的文件集合.
如何获取.pdf文件名的集合并将其填充到arraylist中?
有人可以在vb.net中建议代码吗?
Dear friends,
good morning..plz help me..
A folder contains collection of files with the extension of .pdf and .xml.
How to get collection of .pdf file name and populate the names in arraylist?
can anyone suggest a code in vb.net?
推荐答案
string[] filePaths = Directory.GetFiles(@Directory Name, "*.pdf",
SearchOption.AllDirectories);
VB.Net解决方案
Dim filePaths As String()= Directory.GetFiles(目录名称","* .pdf",SearchOption.AllDirectories)
VB.Net solutions
Dim filePaths As String() = Directory.GetFiles("Directory Name", "*.pdf", SearchOption.AllDirectories)
这篇关于如何从文件夹中获取.pdf扩展文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文