Parameter |
Top Previous Next |
Use in command line mode > Parameter
Delphi2Cpp II.exe can be controlled either by a management, which was produced with the file manager or by parameters for the source and target files. In the first case a call has the form:
Delphi2Cpp -p PROJECT -m MANAGEMENT
and in the second case:
Delphi2Cpp -p PROJECT -s SOURCE [-t TARGET] [-r]
Expressions in brackets are optional. If a path contains spaces, it has to be quoted.
-p PROJECT
The parameter -p must be followed by the path of the Delphi2Cpp II project, with the options by which the files of the source directory shall be translated.
-m MANAGEMENT
The parameter -m is followed by the path to a Delphi2Cpp II management, which specifies the source and target files. If an -m paramerter is provided, -s, -t and -r are ignored.
-s SOURCE
The parameter -s must be followed by a specification of the files, which shall be translated. In the simplest case this a specification is the path of a single file, like "C:\dir\source.pas". To transform all "pas" files of a directory, you can use a mask like: "C:\dir\*.pas;*.dpr". If there is no directory specified in the mask, all according files of the actually directory will be translated. If there is no special extension specified in the mask, all files of the directory will be translated. E.g.: "ab?.*" will chose all files of the directory beginning with "ab" followed by a single character, e.g. "ab1.pas", "ab2.pas" and "ab_.pas". Attention: in this case Delphi2Cpp II will try to translate also files with other extensions than "*.pas". This will lead to errors for "*.txt" files or "*.inc"-files etc.
-t TARGET
The specification of a target is optional. If there is no, all translated files will be written into the directory of the source files. A target directory has to be be specified, if the files shall be preprocessed only.
-r RECURSIVE
By the optional parameter "-r" you can force a recursive search for source files in all subdirectories.
-pause
With the optional parameter "-pause" you can keep the console window opened until a key is pressed. So you can read the messages, which were produced. Without this parameter the console window is closed as soon as the translations are finished.
|
This page belongs to the DelphiXE2Cpp11 Documentation |
DelphiXE2Cpp11 home Content |