【话唠】庾伟洪(908069876)  13:34:59
没有批命令能力就运行type bat.txt | shell
【话唠】庾伟洪(908069876)  13:35:18
将你的命令都写bat.txt里, 然后传递给shell
【话唠】狗熊(3271702309)  13:35:33
那你直接用shellexecute 就好了
【话唠】狗熊(3271702309)  13:35:41
还要写bat这么蠢的做法?
【吐槽】墨须(964489899)  13:35:43
好的。 终于解决了。
【话唠】狗熊(3271702309)  13:35:53
Shellexecute(handle,nil,'notepad.exe',nil,nil,sw_normal);
【话唠】狗熊(3271702309)  13:35:57
一行解决
【话唠】狗熊(3271702309)  13:36:07
shellexecute(handle,nil,'cmd.exe',pchar('/c ping 192.168.1.1'),nil,sw_normal);

【话唠】庾伟洪(908069876)  13:36:13
shellexecute是淘汰掉的API
【话唠】狗熊(3271702309)  13:36:34
你不装逼 是不是肚子疼
【话唠】庾伟洪(908069876)  13:36:37
好像不是, 好像淘汰掉的是另一个
【话唠】狗熊(3271702309)  13:36:46
别人用的都是淘汰的
【话唠】狗熊(3271702309)  13:36:57
你说的winexec把