我们如何在服务器上找到给定的文件? [英] how we can find that given file on server or not?

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

问题描述

你好朋友

我想检查给定文件在服务器上是否存在??

有帮助吗?

在此先感谢

hello friends

i want to check the given file is exist on server or not??

any help ?

thanks in advance

推荐答案

ASP.NET完全基于Web(始终检查服务器路径).您可以直接检查指定路径上的文件.
例如
ASP.NET is purely webbased (always it checks on server path). You can dierectly check file on specified path.
e.g.
if (System.IO.File.Exist(\\File path))<br />
      {<br />
         //Code<br />
      }<br />


首先将给定文件STRING存储在字符串变量中,然后从服务器表的DATATABLE中获取数据,将给定字符串与获得的表列字符串进行比较...
first store the given file STRING in a string variable then get the data from the server table in a DATATABLE the compare given string with the got table column strings...


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

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