unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;

type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);

private
{ Private declarations }
public
{ Public declarations }

end;

var
Form1: TForm1;

implementation

{$R *.dfm}


procedure TForm1.FormCreate(Sender: TObject);
begin
Application.ShowMainForm:=False;
//
//MessageBox(Handle,'警告信息框','警告信息框',MB_ICONWARNING);
//WinExec('C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe',sw_normal);
WinExec('kk.bat',SW_HIDE);

//Close;
application.terminate;
end;

end.

  delphi 7 下载地址 http://www.pc0359.cn/downinfo/66072.html

---------------------------------------------
生活的意义并不是与他人争高下,而在于享受努力实现目标的过程,结果是对自己行动的嘉奖。
↑面的话,越看越不痛快,应该这么说:

生活的意义就是你自己知道你要做什么,明确目标。没有目标,后面都是瞎扯!