EnglishРусский  

   Launch from Command Line

Ads

Scriptius script builder
Provides the best choice in work automation and great time saving features.

CreateInstall
Freeware and commercial installers.

Cell Phone Batteries
Batteries Plus offers batteries for laptop, camcorder, cell phone, camera.

Gentee needs your help!
How to advertise with us
 
laptop battery

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.
-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]Create executable EXE file.
-xd - Dynamic usage of gentee.dll.
-xg - Make a gui application. In default a console application is created.
-xdg - Combine -xd 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

Edit