如果同一个局域的计算机比较多,经常会遇到修改IP被用户修改之后造成IP冲突的情况。针对这种情况本人使用delphi开发了一个修改IP的工具。
Delphi代码:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ShellAPI,IniFiles;
type
TForm1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
edtip: TEdit;
edtmask: TEdit;
edtgateway: TEdit;
edtdns1: TEdit;
edtdns2: TEdit;
Button1: TButton;
Button2: TButton;
CheckBox1: TCheckBox;
Label6: TLabel;
edtinterface: TEdit;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: