I am looking for a way to let the application know if it’s compiled as Standalone or CGI.
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
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.