健 健康 Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-08 #1 这是我用的方法:<br>winexec(pchar('c:/winnt/system32/command.com/c ping 192.168.31.1>d:/mydocument/k.txt'),sw_hide)。<br>有错误么?<br>怎么死活都不执行dos命令?<br>
这是我用的方法:<br>winexec(pchar('c:/winnt/system32/command.com/c ping 192.168.31.1>d:/mydocument/k.txt'),sw_hide)。<br>有错误么?<br>怎么死活都不执行dos命令?<br>
D D影子D Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-08 #2 shellexecute(handle,nil,pchar('c:/winnt/system32/ping.exe 192.168.31.1><br>d:/mydocument/k.txt'),nil,nil,sw_hide);
shellexecute(handle,nil,pchar('c:/winnt/system32/ping.exe 192.168.31.1><br>d:/mydocument/k.txt'),nil,nil,sw_hide);
B BlackDragon Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-08 #3 winexec(pchar('cmd /c ping 192.168.0.1 >d:/k.txt'),sw_hide);<br>注意空格。