KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Correct path names using Launch External Process
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Mac & Win
Published On: September 30, 2004

With 4D 2004, you now have the ability to launch an external application or script from within 4D and have it return a value back to 4D via the standard out. To use this command, simply pass the path of the application to open as the first parameter. The problem is that if there are spaces within the path to the application,

The followcing code edits a text file (cat is the MacOS X command used to edit files). In this example, the full access path of the command is passed:

C_TEXT(input;output)
input:=""
LAUNCH EXTERNAL PROCESS ("/bin/cat /folder/myfile.txt";input;output)