简单的我懂一点 1. procedure TForm1.FormResize(Sender: TObject); begin if WindowState = wsMinimized then Hide; end;procedure TForm1.FormActivate(Sender: TObject); begin Show; end; 2. if WinExec('cmd.exe /c copy c:\unit1.pas c:\unit1.txt', SW_HIDE) < 32 then RaiseLastOSError;
2:ShellExecute调用
2000/xp
ShellExecute(Handle, 'Open', 'cmd.exe', nil, 'dir', SW_Show)
9x
ShellExecute(Handle, 'Open', 'command.com', nil, 'dir', SW_Show)
1.
procedure TForm1.FormResize(Sender: TObject);
begin
if WindowState = wsMinimized then
Hide;
end;procedure TForm1.FormActivate(Sender: TObject);
begin
Show;
end;
2.
if WinExec('cmd.exe /c copy c:\unit1.pas c:\unit1.txt', SW_HIDE) < 32 then
RaiseLastOSError;