CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 1999
    Location
    Indiana, USA
    Posts
    94

    Executing a program from another program??

    How can I execute a known file (i.e. c:\programs\myprogram.exe) from an mfc application. I have written a software auditing program, but would like to add a feature to execute a program from a list (to more easily identify the software.) Any help would be greatly appreciated!!!!!

    ///////////////////////////////////////////////////////
    Good things come to those who wait...
    But they come used by the impatient....
    ///////////////////////////////////////////////////////

  2. #2
    Join Date
    Jun 1999
    Posts
    31

    ::ShellExecute

    The ShellExecute API launches other applications...


    ::ShellExecute(m_hWnd, "open", "C:\\SomeProgram.exe", NULL, NULL, SW_SHOW);





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured