CD-Menu Creator's editor (SLCDEDIT.exe) supports some
command line parameters. With a command line parameter you can for example
open CD-Menu Creator with a specific project file (.CDP file) loaded from
start or open CD-Menu Creator in a special (silent) build mode where a menu
interface is created without any user interaction. The later is very useful
if you want to include CD-Menu Creator in a batch build process; CD-Menu
Creator can build a menu interface automatically and with no user interaction.
|
More information about the /BUILD
parameter
If you specify the /BUILD parameter in the command line, CD-Menu
Creator will be run in a silent build mode. CD-Menu Creator editor's user
interface will not be shown and no user interaction is possible. The build
mode is very useful if you want to include CD-Menu Creator in batch build
processes. When the /BUILD mode parameter is specified, CD-Menu Creator
will open the project file, build the menu interface and return automatically
when finished.
Errors can be handled by using the /LOG parameter. If an error occurs
during the build mode, SLCDEDIT.exe will return the exit code 1 instead
of 0 (SLCDEDIT.exe returns always 0 at success), and a detailed error message
is written to the log file.
Menu interfaces are normally build (created) in a folder that is specified
in the project file; in the Create in this folder text box in the
Create dialog box, see the picture below:
But if you want to have your menu built in another
folder you can specify it by using the /BUILDFOLDER command line
parameter. For example like this: /BUILDFOLDER:C:\MyCreatedMenus\Menu1.
Example 1
This is the simplest way to use a command line parameter with CD-Menu Creator. If you specify a path to a project file (.CDP file), the project will be opened automatically when CD-Menu Creator starts. Example 2
If you specify the /BUILD parameter together with a path to a project file, the project file will be opened and a menu interface created automatically. When the build process is finished, CD-Menu Creator will be closed automatically. No user interface is shown, everything is done invisible. Example 3
If you also specify the /BUILDFOLDER switch together with a folder path, you can have your menu interface built (created) in another folder than the creation folder specified in the project file. Example 4
When the /BUILD parameter is specified no visual user interface is shown. To discover errors you can specify a path to a log file together with the /LOG switch. If any error occurs during the build process, an error message will be written to the log file. SLCDEDIT.exe will also return the exit code 1 if an error occurs. If the build was successful SLCDEDIT.exe will return 0.
|
Copyright © by SamLogic. All rights reserved.