P Passion Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-19 #1 比如说我要执行DIR C: > A.TXT<br>具体应该怎么写?CMD.EXE怎么用?
P paf Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-19 #2 在win98下可以这样<br>ShellExecute(handle, nil, pchar('commmand /c dir c: >a:txt'), nil, nil, SW_NORMAL);<br><br>
在win98下可以这样<br>ShellExecute(handle, nil, pchar('commmand /c dir c: >a:txt'), nil, nil, SW_NORMAL);<br><br>
N naughtboy Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-20 #3 winexec('cmd /c dir c:>a.txt',sw_normal)<br>这是存倒当前目录下
P Passion Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-20 #4 是了,关键是 /C参数,2k下<br>Winexec('CMD.EXE /C DIR > A.TXT', SW_HIDE);
P Passion Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-20 #5 抱歉,刚才没看见naughtboy兄的回复,否则也给分了。