• 大小: 0.04M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: IP  

资源简介

C#自动更换IP实例

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Management;

namespace ChangeIP
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender EventArgs e)
        {
            ShowInfo();
        }

        private void button1_Click(object sender EventArgs e)
        {
            Managementbaseobject myInMBO = null;
            Managementbaseobject myOutMBO = null;
            ManagementClass myMClass = new ManagementClass(“Win32_NetworkAdapterConfiguration“);
            ManagementobjectCollection myMO

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-01-24 11:55  自动更换IP\
     目录           0  2013-01-24 11:55  自动更换IP\ChangeIP\
     文件         914  2008-10-13 18:32  自动更换IP\ChangeIP.sln
     文件       14336  2008-12-27 16:08  自动更换IP\ChangeIP.suo
     目录           0  2013-01-24 11:55  自动更换IP\ChangeIP\bin\
     目录           0  2013-01-24 11:55  自动更换IP\ChangeIP\bin\Debug\
     文件       12800  2008-12-11 14:42  自动更换IP\ChangeIP\bin\Debug\ChangeIP.exe
     文件       24064  2008-12-11 14:42  自动更换IP\ChangeIP\bin\Debug\ChangeIP.pdb
     文件       14328  2008-12-27 15:33  自动更换IP\ChangeIP\bin\Debug\ChangeIP.vshost.exe
     文件         490  2007-07-21 01:33  自动更换IP\ChangeIP\bin\Debug\ChangeIP.vshost.exe.manifest
     文件        3809  2008-10-13 19:19  自动更换IP\ChangeIP\ChangeIP.csproj
     文件        4895  2008-10-14 09:32  自动更换IP\ChangeIP\Form1.cs
     文件        9205  2008-10-14 08:54  自动更换IP\ChangeIP\Form1.Designer.cs
     文件        5814  2008-10-14 08:54  自动更换IP\ChangeIP\Form1.resx
     目录           0  2013-01-24 11:55  自动更换IP\ChangeIP\obj\
     目录           0  2013-01-24 11:55  自动更换IP\ChangeIP\obj\Debug\
     文件         643  2008-12-27 15:33  自动更换IP\ChangeIP\obj\Debug\ChangeIP.csproj.FileListAbsolute.txt
     文件         847  2008-12-11 14:42  自动更换IP\ChangeIP\obj\Debug\ChangeIP.csproj.GenerateResource.Cache
     文件       12800  2008-12-11 14:42  自动更换IP\ChangeIP\obj\Debug\ChangeIP.exe
     文件         180  2008-12-11 14:42  自动更换IP\ChangeIP\obj\Debug\ChangeIP.Form1.resources
     文件       24064  2008-12-11 14:42  自动更换IP\ChangeIP\obj\Debug\ChangeIP.pdb
     文件         180  2008-12-11 14:42  自动更换IP\ChangeIP\obj\Debug\ChangeIP.Properties.Resources.resources
     目录           0  2012-05-02 09:56  自动更换IP\ChangeIP\obj\Debug\Refactor\
     目录           0  2012-05-02 09:56  自动更换IP\ChangeIP\obj\Debug\TempPE\
     文件         489  2008-10-13 18:31  自动更换IP\ChangeIP\Program.cs
     目录           0  2013-01-24 11:55  自动更换IP\ChangeIP\Properties\
     文件        1366  2008-12-11 14:42  自动更换IP\ChangeIP\Properties\AssemblyInfo.cs
     文件        2866  2008-10-13 18:31  自动更换IP\ChangeIP\Properties\Resources.Designer.cs
     文件        5612  2008-10-13 18:31  自动更换IP\ChangeIP\Properties\Resources.resx
     文件        1093  2008-10-13 18:31  自动更换IP\ChangeIP\Properties\Settings.Designer.cs
     文件         249  2008-10-13 18:31  自动更换IP\ChangeIP\Properties\Settings.settings
............此处省略0个文件信息

评论

共有 条评论