简体   繁体   English

在C ++中创建一个独立的进程(Windows)

[英]Create an independent process in C++ (Windows)

How can I create an independent process (by independent I mean that if I stop the programm which called it, the process won't stop) from a C++ executable in Windows? 如何在Windows中从C ++可执行文件创建一个独立的进程(所谓独立,是指如果我停止调用它的程序,该进程将不会停止)?

This process is to run a Windows cmd command from it. 此过程是从中运行Windows cmd命令。

在Windows上,您可以使用CreateProcess()来做到这一点。

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

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