外部命令:
WinExec('c:\windows\command\format.com c:',sw_normal);
内部命令:
WinExec('command.com /c dir c:',sw_normal);
for nt/win2k
WinExec('cmd.exe /c dir c:',sw_normal);
WinExec('c:\windows\command\format.com c:',sw_normal);
内部命令:
WinExec('command.com /c dir c:',sw_normal);
for nt/win2k
WinExec('cmd.exe /c dir c:',sw_normal);
WinExec(pchar('command.com /c dir c:'),sw_hide);
我试了,可是不行
winexec('c:\winnt\system32\write.exe',SW_SHOWNORMAL)
为什么
shellexecute()
我用过没有什么问题、并且可以传递参数