(高分)请教!本人急用!!!(100分)

S

seucag

Unregistered / Unconfirmed
GUEST, unregistred user!
本人有一DOS程序!
现想用winexec调用它,但用“>”输出重定向好象没有用!
请问怎样才能将结果输出到文件!
最好提供原程序
 
winexec('command /c "ping xxx.xxx.xxx.xxx > ttt.txt"', SW_HIDE);
winexec('cmd /c "ping xxx.xxx.xxx.xxx > ttt.txt"', SW_HIDE);
 
delphi怎样调用外部EXE文件?

uses WinProcs;

.
begin

WinExec(......);

.

end.

和调用Pascal库函数没什么两样。
我想你是否忘了调用winprocs
 
to:wjiachun
你的方法好象没有用!
找不到.txt文件!
 

做个批处理文件不就行了
 
多人接受答案了。
 
顶部