//判断文件是否存在的函数,
        private bool Test(string URL)
        {
            try
            {
                System.Net.WebRequest s=System.Net.WebRequest.Create(URL);
                s.Timeout=10000;//响应时间
                System.Net.WebResponse a=s.GetResponse();
                return true;
            }
            catch
            {
                return false;
            }
        }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
  • 2021-12-07
  • 2021-07-29
  • 2021-11-19
  • 2021-10-18
猜你喜欢
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-02
  • 2022-12-23
相关资源
相似解决方案