开发者

How to automatically load a project when starting Delphi

开发者 https://www.devze.com 2022-12-21 21:18 出处:网络
I want to specify a project to be opened when I launch Delphi(D2010). Is there a command-line parameter to pass to bds.exe, like the -r option allowing to load a specific Registry Setting, where I co

I want to specify a project to be opened when I launch Delphi(D2010).

Is there a command-line parameter to pass to bds.exe, like the -r option allowing to load a specific Registry Setting, where I co开发者_开发技巧uld pass the name of the project I want to open when launching bds.exe?

The only options I know of are:

-ns  "no splash"      
-np  "no project"   
-hm  "Heap Monitor"  
-attach "attach to process(JIT)"  
-r    "registry root"  
-p    "Personalities"  


Just add the path after your command.

"{path to rad studio}\bin\bds.exe" -pDelphi "C:\Projects\TestProj\TestProj.dproj"

BTW: here is the IDE Command Line Reference.


Sounds to me that instead of launching Delphi, you should just double-click the project file. The OS will start Delphi for you, and Delphi will open the project automatically. Make a shortcut to it on your desktop or in your Start menu for easy access.

In Delphi 7 and earlier, use the DPR file. For later versions, use the DPROJ or BDSPROJ file instead.

Works for project groups, too.

0

精彩评论

暂无评论...
验证码 换一张
取 消