|Top Previous Next|
Use in command line mode > Parameter
Delphi2C#.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:
Delphi2C# -p PROJECT -m MANAGEMENT
and in the second case:
Delphi2C# -p PROJECT -s SOURCE [-t TARGET] [-r]
Expressions in brackets are optional.
If a path contains spaces, it has to be quoted.
The parameter -p must be followed by the path of the Delphi2C# project, with the options by which the files of the source directory shall be translated.
The parameter -m is followed by the path to a Delphi2C# management, which specifies the source and target files.
If an -m paramerter is provided, -s, -t and -r are ignored.
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 Delphi2C# will try to translate also files with other extensions than "*.pas". This will lead to errors for "*.txt" files or "*.inc"-files etc.
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.
By the optional parameter "-r" you can force a recursive search for source files in all subdirectories.
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 Delphi2C# Documentation
|Delphi2C# home Content|