Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run other program from program

Status
Not open for further replies.

Detective

Programmer
Mar 8, 2002
15
NL
Hi,

Is it possible to open another Delphi file from
a Delphi program? (Something like RUN('test.dpr'))
 
I guess You want to open a Delphi project file from a program (let me ask why ?) !?

Since dpr files are linked to Delphi You just have to call

ShellExecute(0, nil, 'c:\xyz\test.dpr', '', nil, SW_SHOWNORMAL);

hope this it what you wanted.

Regards
Roderich
 
Dont forget that you need to include

ShellAPI

in your uses list.

Good luck, BobbaFet

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top