菜鸟紧急问题,怎样象VB一样在过程调用一个Exe,急谢! 有API函数:WinExec(),可以在帮助中查到。另外还有两个函数:是 ShellExec,另一个记不清了。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 给你一个例子:unit Unit1;interfaceuses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls,ShellAPI; //别忘了加ShellAPI单元;type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.DFM}procedure TForm1.Button1Click(Sender: TObject);begin shellexecute(handle,'','Notepad.exe','','C:\Windows',sw_show);end;end. 高手请进,Ado主从表如何使用like? 专业DVD压缩软件ZipMedia现在提供下载! 简单的三层问题 关于DBGrid的问题,UP有分!!! 请问怎么让窗口一启动就隐藏,在任务栏也不显示??? 求救,高分酬谢 delphi 用ADO如何连上sybase? 誰知道:Script RedLof.htm是什么病毒?(在线) 怎样制作透明的Panel 哪能买到vcl元件属性的详细说明的书? 如何解决RXrichedit 的selstart,sellength 不能正常工作的问题? 各位大虾,救救我!
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls,ShellAPI;
//别忘了加ShellAPI单元;type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.DFM}procedure TForm1.Button1Click(Sender: TObject);
begin
shellexecute(handle,'','Notepad.exe','','C:\Windows',sw_show);
end;end.