如何在计算机上查找文件 [英] How to find a file on the computer

查看:87
本文介绍了如何在计算机上查找文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在计算机上的C中找到带有某些字符和三个未知字符的文件#

How to find a file on the computer with certain characters and three unknown character in C #

推荐答案



首先,如果您有Web应用程序,则在计算机中搜索文件不是一个好习惯,因为它将在服务器中搜索该文件.托管服务器不允许您在系统中搜索文件,而是可以在应用程序的文件夹中搜索.

其次,如果您具有Windows应用程序,则可以创建递归函数以读取每个文件和文件夹以符合搜索条件.尽管执行将花费很多时间,所以您需要实现BackgroundWorker来进行处理.

让我们知道更多信息或尝试一些操作.

祝你好运
Hi,

First of all Searching for a file in computer is not good practice if you have web application, As it will search in the Server for the file. Hosting server will not allow you to search for the file in system, instead you can search within folder in your application.

Secondly if you have windows application then you can create recursive function to read each files and folders for your searching criteria. Although it will take a lot of time to execute so you need to implement BackgroundWorker to process for this.

Let us know further information or try something.

Best luck


这篇关于如何在计算机上查找文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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