Results 1 to 2 of 2

Thread: launch exe

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2001
    Posts
    54

    launch exe

    I want to launch an exe (windows app) from systray, I guess CreateProcess and shellExecute can do it, what's the difference between them? which one should I choose?

    Thanks.

  2. #2
    jim mcnamara
    Guest
    The mian difference is if you want to have your code wait for the executable to finish or not

    ShellExecute does not return a process handle - you use that in a call to WaitForSingleObject to keep your code idle while the shelled app works.

    ShellExecuteEx and CreateProcess both return a process handle.

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