Announcement

Collapse
No announcement yet.

Running a Program and Waiting for it to Finish

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Running a Program and Waiting for it to Finish

    Running a Program and Waiting for it to Finish

    Running a Program and Waiting for it to Finish

    Document ID: IR10017
    The information in this article applies to:
    • AutoPlay Media Studio 5.0 Standard Edition
    • AutoPlay Media Studio 5.0 Professional Edition

    SUMMARY

    This article describes how to run a program and have your application wait until the program exits before continuing.

    DISCUSSION

    Using AutoPlay Media Studio 5.0, 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:

    File.Run("c:\\example.exe", "", "", SW_NORMAL, true);

    This action will launch example.exe, and wait until example.exe is terminated.

    MORE INFORMATION

    For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:

    • Program Reference | Actions | File | File.Run

    KEYWORDS: AutoPlay Media Studio 5.0, Actions, Wait, Run, Finish, Exit


    Last reviewed: September 26, 2003
    Copyright © 2003 Indigo Rose Corporation. All rights reserved.
Working...
X