Auto distinguish Standalone- / CGI-build

I am looking for a way to let the application know if it’s compiled as Standalone or CGI.

Application.ExecutableFile.Name

Check for the extension .cgi.

Yes Michel, how simple can it be ? Just did not think that way. Thanks.

better just check mode property:

[code] Select case app.Mode
case app.ModeCGI

case app.ModeHTTP

else
Break
end Select
[/code]

[quote=123906:@Michel Bujardet]Application.ExecutableFile.Name

Check for the extension .cgi.[/quote]
Don’t use that. It wont have a .cgi extension. We build a second perl script file with that name, and it does not need to keep that name.

Thanks Greg. I will use the Mode property since that is mend for this purpose.