在窗口应用程序中搜索文件 [英] File Searching in Window Application

查看:59
本文介绍了在窗口应用程序中搜索文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个与Lan连接的电脑,我想创建一个C#窗口应用程序,当我把IP地址和文件名放在第一台PC上的窗口应用程序中时,可以从第二台PC搜索文件

i have two pc that is connected with Lan, i want to create the C# Window Application that can search the file from second PC when i put the IP address and The file name in Window Application on first PC

推荐答案





你可以让你 DirectoryInfo.GetFiles 方法。请参阅MSDN文章。

DirectoryInfo.GetFiles方法(字符串) [ ^ ]



但是传递DirectoryInfo类的第二台机器的网络路径

(例如:\\IP_Address \ ShareFolder)



希望它有所帮助。
Hi,

you can make you of DirectoryInfo.GetFiles method. refer the MSDN article.
DirectoryInfo.GetFiles Method (String)[^]

but pass the network path of the second machine for the DirectoryInfo class
(Ex: \\IP_Address\ShareFolder)

hope it helps.


这篇关于在窗口应用程序中搜索文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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