Re: How to call a shell command in MFC

From: Colin Girling (colin_at_colingirling.my-bulldog.com)
Date: 11/05/04


Date: Fri, 5 Nov 2004 12:51:52 -0000

Could also use:
    _spawnl(_P_WAIT, szPath, "dummy", NULL);

easier to use than CreateProcess.

"Hu Dong" <hdong@ucdavis.edu.INVALID> wrote in message
news:ujQ8fDewEHA.3528@tk2msftngp13.phx.gbl...
> Hi,
> I just want to call a shell command "processor-cmd -cmd -netfolder
> myfolder"
> in my MFC application. I also want to have it run synchronousely --- the
> MFC
> application should wait until the shell command returns. I have googled
> but
> did not find anything useful. Do you have any comments or suggestions?
>
> Many thanks in advance.
>
> Hu
>
>



Relevant Pages

  • Re: How to call a shell command in MFC
    ... easier to use than CreateProcess. ... > MFC ... > application should wait until the shell command returns. ...
    (microsoft.public.vc.mfc)
  • How to call a shell command in MFC
    ... I just want to call a shell command "processor-cmd -cmd -netfolder myfolder" ... I also want to have it run synchronousely --- the MFC ...
    (microsoft.public.vc.mfc)
  • How to call a shell command in MFC
    ... I just want to call a shell command "processor-cmd -cmd -netfolder myfolder" ... I also want to have it run synchronousely --- the MFC ...
    (microsoft.public.win32.programmer.ui)
  • How to call a shell command in MFC
    ... I just want to call a shell command "processor-cmd -cmd -netfolder myfolder" ... I also want to have it run synchronousely --- the MFC ...
    (microsoft.public.win32.programmer.ui)
  • How to call a shell command in MFC
    ... I just want to call a shell command "processor-cmd -cmd -netfolder myfolder" ... I also want to have it run synchronousely --- the MFC ...
    (microsoft.public.vc.mfc)