简体   繁体   English

C++ 无法通过系统调用调用 tskill inside

[英]C++ Can't call tskill inside with system call

I can't call taskkill or tskill inside VC++ with system i don't know any alternatives, i have tried writing a.bat file and trying calling tskill, that dind't work either.我无法使用系统在 VC++ 中调用 taskkill 或 tskill,我不知道任何替代方案,我尝试编写一个 .bat 文件并尝试调用 tskill,但这也不起作用。

system("tskill example");
system("dins.bat");

they don't work.他们不工作。

thanks谢谢

Use TerminateProcess instead.请改用TerminateProcess I also recommend reading this .我也推荐阅读这个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM