Gentee Programming Language > Documentation > Launch Download documentation

How to create an EXE file

If you want to launch Gentee programs as exe files, then use the ge2exe program. It allows to create an .exe file from a source file (.g file) or a compiled bytecode (.ge file). Such .exe file is executed without any extra modules. It can be useful, when you wish to use the program on other computers. GE files are created when compiling programs in Gentee.

ge2exe.exe [switches] <source file> [output file]

switches - options. You can specify the following options:
-e – launch the .exe file after creation.
-d – do not include gentee.dll to the created .exe file. In this case, for launching the program gentee.dll is required. This option may be useful if you have several programs in one directory.
-w – wait for keystroke after the .exe file is created.
-i - link .ico file. It must be the next argument.
-i "c:\data\myicon.ico"
-r - link .res file. It must be the next argument.
-r "c:\data\myres.res"
-c - make a console application. Default for .g and .ge files.
-g - make a gui application. Default for .gw and .gwe files.

source file is a required parameter, and should point the name of the file with bytecode or source code. The following extensions are supported: .G, .GW, .GE, .GWE .

output file is an accessory parameter, in which you can point a name for the created .exe file. By default, if this parameter is not specified, the executable will have the same name as the source file, but with extension exe.

ge2exe.exe -r myapp.ge 
ge2exe.exe myapp.ge c:\output\app.exe

Important notice for Windows 95,98,ME users!

It is required unicows.dll for creating EXE files. Unfortunately, it is not in the Windows 95/98/ME installations. So, if you don't have unicows.dll on your computer then you can download it from Microsoft site and install it.
http://www.microsoft.com/downloads/details.aspx?FamilyID=73ba7bd7-ed06-4f0d-80a4-2a7eeaee17e2&displaylang=en

Additional modules

Portions Copyright © 2005 Alexander Pashkov ( EXELink.dll )
Web: http:\\scriptcom.narod.ru

See also

    Quick Launch    Launch from Command Line


 Copyright © 2004-2006 Gentee Inc. All rights reserved.