Home Delphi - Open project programmatically in IDE
Reply: 1

Delphi - Open project programmatically in IDE

Federico Pessina
1#
Federico Pessina Published in 2017-11-14 09:58:04Z

I would open .dproj files programmatically with embarcadero studio. I know the path to dproj file and path to bds.exe, how can i do it?

Philipp H.
2#
Philipp H. Reply to 2017-11-14 10:15:28Z

You can open a delphi project from a cmd with the command: "C:\DelphiInstallation\bin\bds.exe" -pDelphi "C:\Source\YourProjectFile.dproj"

From within Delphi you can use this code:

 ShellExecute(Application.Handle,
  'open',
  PChar('"C:\DelphiInstallation\bin\bds.exe"'),
  PChar('-pDelphi "C:\Source\YourProjectFile.dproj"'),
  nil,
  SW_SHOWNORMAL)
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.353057 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO