KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Suppressing the command prompt window when using Launch External Process
PRODUCT: 4D | VERSION: 2004.1 | PLATFORM: Win
Published On: January 25, 2005
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

On many occasions, using the Launch External Process command to execute a script or to launch an application will briefly display the command prompt window. In 4D 2004, you can now suppress this window from being displayed by passing a couple of parameters to the SET ENVIRONMENT VARIABLE command. This command must be called just before the Launch External Process command.

Command: SET ENVIRONMENT VARIABLE
Parameter1 (text): _4D_OPTION_HIDE_CONSOLE
Parameter2 (text): true

Syntax: SET ENVIRONMENT VARIABLE("_4D_OPTION_HIDE_CONSOLE";"true")

Note: Setting the value of the second parameter to "false" will cause the command prompt window to appear.