Run a Program and Wait for it to Finish

guclusat

Tanınmış Üye
Süper Moderatör
Run a Program and Wait for it to Finish

Using AutoPlay Media Studio, you can launch an executable file, and have your application wait until that
executable file exits.

As an example we will run the executable example.exe, and have the application wait until example.exe is
closed. This is accomplished by using the File.Run action, and setting the WaitForReturn property to true:
Kod:
File.Run("c:\\example.exe", "", "", SW_SHOWNORMAL, true);
Note: This action will launch example.exe, and wait until example.exe is terminated.
 
Yukarı