如何从vb.net中的文件夹中读取文件名 [英] how to read the file name from folder in vb.net

查看:699
本文介绍了如何从vb.net中的文件夹中读取文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c路径中有文件夹。我想用vb.net读取文件名。



C文件夹文件如下



AFF_Files

EFA_Files



i想要阅读AFF和EFA名称。



为此我怎么能在vb.net上做。



问候,

Narasiman P.

I have folder in c path. i want to read the file name using vb.net.

C folder files as follows

AFF_Files
EFA_Files

i want to read the AFF and EFA name.

For that how can i do in vb.net.

Regards,
Narasiman P.

推荐答案

请参阅此处: Directory.GetFiles [ ^ ]

使用不同的搜索模式调用两次。
See here: Directory.GetFiles[^]
Call it twice, with different search patterns.


这篇关于如何从vb.net中的文件夹中读取文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆