• 请不要在回答技术问题时复制粘贴 AI 生成的内容
feijilei
V2EX  ›  程序员

c++ 能不能同时启动两个exe?

  •  
  •   feijilei · Jun 2, 2013 · 3843 views
    This topic created in 4754 days ago, the information mentioned may be changed or developed.
    比如我想同时启动 n.exe 和m.exe (启动第二个程序,不需要等待第一个程序结束完再启动)
    8 replies    1970-01-01 08:00:00 +08:00
    Ricepig
        1
    Ricepig  
       Jun 2, 2013 via iPhone
    各平台都有新开进程的api阿。。。
    Ricepig
        2
    Ricepig  
       Jun 2, 2013 via iPhone
    windows下你是指的shellex?
    jasontse
        3
    jasontse  
       Jun 2, 2013 via iPad
    win? CreateProcess本来不就是立即返回的吗,如果你没有使用WaitForSingleObject函数是不会等到进程退出的啊?
    bradlee
        4
    bradlee  
       Jun 2, 2013
    createprocess/fork
    Ultratude
        5
    Ultratude  
       Jun 2, 2013
    搞木马么?
    sqbing
        6
    sqbing  
       Jun 3, 2013
    请问,这个问题和C++有半点关系嘛?
    feijilei
        7
    feijilei  
    OP
       Jun 3, 2013
    @sqbing 用c++写程序去启动两个程序
    bengol
        8
    bengol  
       Jun 3, 2013 via Android
    @feijilei 还是跟c++没关系
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3459 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 10:44 · PVG 18:44 · LAX 03:44 · JFK 06:44
    ♥ Do have faith in what you're doing.