Runing 4 aplications ( one by one ) using pause command

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • melissa
    No longer a forum member
    • Feb 2007
    • 107

    Runing 4 aplications ( one by one ) using pause command

    hi every one

    i have 4 application to run using one button

    but when the first application begin the others must pause till the first one finish

    and a same for application 2 when it start the others must pause

    so i want to run them one by one , and this is the names of my applications :

    MyWork1

    MyWork2

    MyWork3

    MyWork4

    i hope i find help from you

    thanks
  • mindstitchdr
    Indigo Rose Customer
    • Dec 2004
    • 239

    #2
    I believe this is what you are looking for:

    Code:
    File.Run("AutoPlay\\Docs\\MyWork1.exe", "", "", SW_SHOWNORMAL, true);
    File.Run("AutoPlay\\Docs\\MyWork2.exe", "", "", SW_SHOWNORMAL, true);
    File.Run("AutoPlay\\Docs\\MyWork3.exe", "", "", SW_SHOWNORMAL, true);
    File.Run("AutoPlay\\Docs\\MyWork4.exe", "", "", SW_SHOWNORMAL, true);
    You will notice the WaitForReturn is set to true. This will make the first app run and wait until it is finished before moving on to the next one.

    Comment

    • melissa
      No longer a forum member
      • Feb 2007
      • 107

      #3
      thanks a lot mindstitchdr , i`m gonna try it

      Comment

      Working...
      X