• 大小: 0.42M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: IP  ping  测试  地址  

资源简介

c# 测试网络是否稳定 通过ping ip又有异常就会记录下来

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
//using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Forms;
using System.Net.NetworkInformation;
using System.Text.Regularexpressions;

namespace GeiIPState
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        string M_TbxStatus = ““;
        string GetIP = ““;
        string path = Application.StartupPath + “\\IP_Status_Log.txt“;
        public void tbx_getIP_Leave()
        {
            try
            {
                int _int = GetIP.IndexOf(“w“);
                if (_int >= 0 && GetIP.Substring(_int 3) == “www“)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        120  2016-10-20 22:29  GeiIPState\GeiIPState\app.config

     文件       1579  2016-10-22 16:34  GeiIPState\GeiIPState\bin\Debug\GeiIPState.application

     文件      62976  2016-10-22 16:34  GeiIPState\GeiIPState\bin\Debug\GeiIPState.exe

     文件        120  2016-10-20 22:29  GeiIPState\GeiIPState\bin\Debug\GeiIPState.exe.config

     文件       3883  2016-10-22 16:34  GeiIPState\GeiIPState\bin\Debug\GeiIPState.exe.manifest

     文件      32256  2016-10-22 16:34  GeiIPState\GeiIPState\bin\Debug\GeiIPState.pdb

     文件       1579  2016-10-22 16:34  GeiIPState\GeiIPState\bin\Debug\GeiIPState.vshost.application

     文件      14328  2016-10-22 16:34  GeiIPState\GeiIPState\bin\Debug\GeiIPState.vshost.exe

     文件        120  2016-10-20 22:29  GeiIPState\GeiIPState\bin\Debug\GeiIPState.vshost.exe.config

     文件      52151  2016-10-20 23:18  GeiIPState\GeiIPState\bin\Debug\IP_Status_Log.txt

     文件       1505  2016-10-19 22:22  GeiIPState\GeiIPState\bin\Debug\Status_Log.txt

     文件       1579  2016-10-22 16:35  GeiIPState\GeiIPState\bin\Release\GeiIPState.application

     文件      62464  2016-10-22 16:35  GeiIPState\GeiIPState\bin\Release\GeiIPState.exe

     文件        120  2016-10-20 22:29  GeiIPState\GeiIPState\bin\Release\GeiIPState.exe.config

     文件       3883  2016-10-22 16:35  GeiIPState\GeiIPState\bin\Release\GeiIPState.exe.manifest

     文件      26112  2016-10-22 16:35  GeiIPState\GeiIPState\bin\Release\GeiIPState.pdb

     文件      62464  2016-10-20 23:33  GeiIPState\GeiIPState\bin\Release\GeiIPState_net2.0.exe

     文件        855  2016-10-21 10:49  GeiIPState\GeiIPState\bin\Release\IP_Status_Log.txt

     文件       7871  2016-10-22 16:35  GeiIPState\GeiIPState\Form1.cs

     文件      10753  2016-10-22 16:35  GeiIPState\GeiIPState\Form1.Designer.cs

     文件      42233  2016-10-22 16:35  GeiIPState\GeiIPState\Form1.resx

     文件       6218  2016-10-20 23:33  GeiIPState\GeiIPState\GeiIPState.csproj

     文件        592  2016-10-20 23:33  GeiIPState\GeiIPState\GeiIPState.csproj.user

     文件       1692  2016-10-20 21:54  GeiIPState\GeiIPState\GeiIPState_TemporaryKey.pfx

     文件       1579  2016-10-22 16:34  GeiIPState\GeiIPState\obj\Debug\GeiIPState.application

     文件       2023  2016-10-22 16:34  GeiIPState\GeiIPState\obj\Debug\GeiIPState.csproj.FileListAbsolute.txt

     文件        847  2016-10-22 16:34  GeiIPState\GeiIPState\obj\Debug\GeiIPState.csproj.GenerateResource.Cache

     文件      62976  2016-10-22 16:34  GeiIPState\GeiIPState\obj\Debug\GeiIPState.exe

     文件       3883  2016-10-22 16:34  GeiIPState\GeiIPState\obj\Debug\GeiIPState.exe.manifest

     文件      24124  2016-10-22 16:34  GeiIPState\GeiIPState\obj\Debug\GeiIPState.Form1.resources

............此处省略72个文件信息

评论

共有 条评论