Lazarus中文社区

 找回密码
 立即注册(注册审核可向QQ群索取)

QQ登录

只需一步,快速开始

Lazarus IDE and 组件 下载地址版权申明
查看: 4759|回复: 1

How-To: Execute an external program in FreePascal/Lazarus

[复制链接]

该用户从未签到

发表于 2009-10-13 09:39:14 | 显示全部楼层 |阅读模式
uses&#160rocess;
var
  Proc: TProcess;
begin
  Proc := TProcess.Create(nil);
  Proc.CommandLine := ‘your commandline including parameters here’;
  Proc.Execute;
  Proc.Free;
end;

评分

参与人数 1威望 +5 收起 理由
猫工 + 5 互相帮助,相互学习

查看全部评分

回复

使用道具 举报

该用户从未签到

发表于 2009-10-13 10:38:36 | 显示全部楼层
执行外部程序的方法
回复 支持 反对

使用道具 举报

*滑块验证:

本版积分规则

QQ|手机版|小黑屋|Lazarus中国|Lazarus中文社区 ( 鄂ICP备16006501号-1 )

GMT+8, 2025-5-3 08:23 , Processed in 0.033218 second(s), 15 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表