var
x:integer;
wordlist:tstringlist;
si:startupinfor;
pi:process_information;begin
wordlist:=tstringlist.create;
wordlist.add(....);
for x:=1 to wordlist.count do begin
createprocess(nil,'d:\office\word.exe wordlist[x-1]',nil,nil,false,0,nil,nil,si,pi);
end; end;调试半天,总是不成功,如何妆wordlist中和doc文档作为word.exe的参数来传递呢?
x:integer;
wordlist:tstringlist;
si:startupinfor;
pi:process_information;begin
wordlist:=tstringlist.create;
wordlist.add(....);
for x:=1 to wordlist.count do begin
createprocess(nil,'d:\office\word.exe wordlist[x-1]',nil,nil,false,0,nil,nil,si,pi);
end; end;调试半天,总是不成功,如何妆wordlist中和doc文档作为word.exe的参数来传递呢?
解决方案 »
- 关于UDPsever监控客户端的问题
- 远程获取滚动文字广告 师傅们进来看看 在线等 急
- 如何托拽含有javascript地链接
- 紧急:怎样通过LICENSE来控制COM+构架的三层系统登录数!
- 如何实现在将工程隐藏在DLL中!
- delphi加txt文件
- "Delphi"的来由~~
- 非表中的字段 在dbgrid中能不能让它可以输入数据呢?在线等 解决就结贴!!!
- BDE error 8458 :Cannot load an IDAPI service library.是怎么回事?
- 用代码读取Excel文件,怎样知道Excel的行数,列数是多少,也就是说通过循环得到Excel中的数据?
- 为什么我的贴子没人回答,分都给不了,http://community.csdn.net/Expert/topic/5135/5135508.xml?temp=.2909204,http://community.csdn
- 自定義TEdit 捕捉WM_KEYDOWN 消息后 ,home,end 鍵無效了
x:integer;
wordlist:tstringlist;
si:startupinfor;
pi:process_information;sRun:String;//定义一个临时变量begin
wordlist:=tstringlist.create;
wordlist.add(....);for x:=1 to wordlist.count do
begin
sRun := 'd:\office\word.exe '+wordlist[x-1];
createprocess(nil,Pchar(sRun),nil,nil,false,0,nil,nil,si,pi);
end;end;