Re: Run
yahoomailnam yahoomaillastname <[email protected]> Tue, 21 Dec 2004 09:03:28 -0800 (PST)
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <[email protected]> |
Hi There is a rather silly way to do that. I don't know whether it'll suit your need or not. The following assume you are using Delphi, and you are building a Win App, with Form. 1.Add an ActionList component (from the Standard tab) 2.Right click on the component and open the Action List Editor 3.Add a New Standard Action (a dialog will popup) 4.Select the TFileRun (from the File node) 5.Modify (click the "..." button) the FileName property to the *.exe file you want to run 6.Assuming default component name, to run, just use the Execute method, e.g., FileRun1.Execute The above is just a simple run. You can set TAction's property as you need (step 5), experiment with them. Also there are other ways to execute other than step 6. Underneath, though, it just do what others have already told you : winexec(...) <- i think this one is old, shellexecute (IShellExecute) is rather up to date Hope this help --- Ehsun Behravesh <[email protected]> wrote: > > Hi friends > How can I run a EXE file through my program? > > > [Non-text portions of this message have been > removed] > > > > > __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo ------------------------ Yahoo! Groups Sponsor --------------------~--> $4.98 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/i7folB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Delphi-JEDI/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/