EnglishРусский  

   Launch from Command Line

The project is closed! You can look at a new scripting language. It is available on GitHub.
Also, try our open source cross-platform automation software.

Ads

Installer and installation software
Commercial and Freeware installers.

Launch from Command Line

A program in the Gentee language is compiled and run with the console application gentee.exe. Command line options don't cover all gentee features. So, use Compilation profiles for specifing advanced parameters of the compilation.

gentee.exe [switches] <Gentee file> [arguments]

switches
Compiler options. You can use the following options during compilation.
-aThe compiler translates the bytecode to assembler. At this moment, it does NOT translate ALL bytecode to assembler but this option can increase the speed of some programs in several times.
-cOnly compilation. Do not run the program after the compilation.
-dAdd the debug information into the byte-code.
-m <macros>Defining compilation macros. You can define the necessary compilation macros after -m. You should use '\' before quotation marks. Macro definitions must be separated with a semicolon.
Example: -m "MODE=1;NAME=\"My Company, Inc\""\
-fCreate a .ge file with byte code. It will be created in the same directory and will have the same name.
-nIgnore the command '#!' in the first string of the file. See Using '#!' command.
-o <GE or EXE filename>Specify a name for the compiled file. In this case, next part should be the name of the output file. This feature is used if you want the file with bytecode or exe file to have a name (or destination) different from the source file. By default, the compiled byte-code is stored in the file with .ge extension.
-p <profile name>Use profile parameters from the file gentee.ini. See Compilation profiles.
-sDo not display service message during compilation or running.
-tAutomatically convert text to the ОЕМ encoding (DOS encoding) when displaying it on the console.
-dInclude debug information into the byte-code.
-wWait for pressing key at the end of the compilation.
-z[d][n][u]Optimize a byte-code ( -f or -x compatible )
-zd - Delete defines.
-zn - Delete names.
-zu - Delete no used objects.
-z equals -zdnu. Combine -zd, -zn and -zu.
-x[d][g][a][r]Create executable EXE file.
-xd - Dynamic usage of gentee.dll.
-xg - Make a gui application. In default a console application is created.
-xa - Specify this option if your program or its part is compiled with -a option.
-xr - Specify it if you want that the bytecode is translated to assembler each time when you run the program. Don't use this parameter with -a option.
-xdgr - Combine -xd,-xr and -xg.
-i <icon file>Link .ico file ( -x compatible ). Example -i "c:\data\myicon.ico"
-r <res file>Link .res file ( -x compatible ). Example -r "c:\data\myres.res"

Gentee file
This parameter is a required one and must define the name of the compilation file or the file with byte code to be executed.

arguments
All parameters after the name of the file being run are command line parameters that will be passed over to the program being run.

Examples

gentee.exe -t myfile.g
gentee.exe -s myapp.g "command line argument" 10 20
gentee.exe -o "c:\temp\app.ge" -c myapp.ge "command line argument"
gentee.exe -p myprofile "c:\my programs\myfile.g"

Related links