Home Articles Books Download FAQs Tips

Start BCB without creating a new project

c:> bcb.exe -np

By default, BCB creates a new project every time you launch it. This application is a VCL application with an empty main form.

Some developers feel that this creating a new application on startup is a nuisance. Fortunately, you can suppress this behavior by passing -np as a command line switch to BCB.EXE (bcb.exe is the IDE program).

If you launch BCB using a shortcut, you can edit the shortcut's properties to pass in the -np argument. Add -np to the target box. Make sure to put a space between -np and bcb.exe. Also make sure that you modify every shortcut that refers to BCB. The target box of my shortcut looks like this:

C:\CBuilder5\Bin\bcb.exe -np

If you launch BCB from a command prompt instead of a shortcut, then you can simply add -np on the command line.

Note: This tip only works for BCB5 and up.

Note: You can pass the flag using either -np or /np, whichever you prefer.

Note: If you installed BCB to its default location, your target box of your shortcuts may look like this:

    "C:\Program Files\Borland\CBuilder5\bin\bcb.exe"
If this is the case, make sure that you put the -np switch outside of the quotes. Like this;

    "C:\Program Files\Borland\CBuilder5\bin\bcb.exe" -np
Note: There are several other options that you can pass to BCB.EXE. See the tip labeled 'Command line options for BCB' for more details.



Copyright © 1997-2000 by Harold Howe.
All rights reserved.