文件大小:0.65 KB
文件类型:zip
发布时间:2016-01-03 16:34:09
需资源分:1
下载次数:1
Tag:DELPHI命令
::资源简介::
DELPHI命令
>>>>>>>>生成法
procedure TForm1.Button1Click(Sender: TObject);
begin
winexec('cmd /c net user',SW_Normal);
Label4.Caption:='成功!';
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
winexec('cmd /c net user zhu 123 /add',SW_SHOW);
Label5.Caption:='成功!';
end;
procedure TForm1.Button3Click(Sender: TObject);
begin
winexec('cmd /c net localgroup aministrators zhu /add',SW_SHOW);
Label6.Caption:='成功!';
end;
procedure TForm1.Button4Click(Sender: TObject);
begin
winexec('cmd /c net localgroup aministrators',SW_SHOW);
Label7.Caption:='成功!';
end;
procedure TForm1.Button5Click(Sender: TObject);
begin
winexec('cmd /c net user zhu /delete',SW_SHOW);
Label8.Caption:='成功!';
end;
2>>>>>>>>变量法
WinExec(pchar('cmd /c net user '+ Edit1.Text + ' 123 /add'), SW_SHOW);
=======================================================================
WINEXEC//调用可执行文件
winexec('command.com /c copy *.* c:\',SW_Normal);
winexec('start abc.txt');
ShellExecute或ShellExecuteEx//启动文件关联程序
function executefile(const filename,params,defaultDir:string;showCmd:integer):THandle;
ExecuteFile('C:\abc\a.txt','x.abc','c:\abc\',0);
ExecuteFile('http://tingweb.yeah.net','','',0);
ExecuteFile('mailto:tingweb@wx88.net','','',0);
::下载地址::
>> 评论