PDA

View Full Version : Running an Executable File


Desmond
09-26-2003, 09:56 AM
<HTML> <HEAD> <TITLE>Running an Executable File</TITLE> </HEAD> <BODY> <h3>Running an Executable File</h3> <b>Document ID: IR10014</b> <hr> The information in this article applies to: <ul> <li>AutoPlay Media Studio 5.0 Standard Edition</li> <li>AutoPlay Media Studio 5.0 Professional Edition</li> </ul> <hr> <h3>SUMMARY</h3> <p>This article describes how to run an executable file. </p> <h3>DISCUSSION</h3> <p>AutoPlay Media Studio 5.0 includes an action to launch an executable file. This is useful, for example, when creating a front end for your installer. When the user clicks on a button labeled "Install", your application launches your setup program. This is accomplished in AutoPlay Media Studio 5.0 by using the File.Run action.<br> <br> To launch an executable file when the user clicks a button, place the File.Run action in the On Click event of the button's actions:<br> <br> <code>File.Run("c:\\your_file.exe", "", "", SW_SHOWNORMAL, false);<br></code> <br> Or, to have your application wait until the executable has exited, change the WaitForReturn property to true:<br> <br> <code>File.Run("c:\\your_file.exe", "", "", SW_SHOWNORMAL, true);</code></p> <h3>MORE INFORMATION</h3> <p>For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:</p> <ul> <li><b>Program Reference | Actions | File | File.Run</b></li> </ul> <p> KEYWORDS: AutoPlay Media Studio 5.0, Actions, Open, Run, EXE, Executable </p> <hr> <FONT SIZE=1> Last reviewed: September 26, 2003<br> Copyright © 2003 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br> </FONT> </BODY> </HTML>