"runprogram wait" doesn't work when a lot of commandline parameters are involved. It has a limit somewhere that I am breaking with my almost 1K long command line.

This situation is mentioned in the help that offers me to use externalfunction ShellExecute(W) but that is asynchronous and not a replacement for "runprogram wait".

Bernhard Ponemayr must have faced a similar challenge this 20 years ago which made him create StartProg.pkg with a gStartProgram function that solves the problem for DF<=19.1. (by use of external functions CreateProcessA, GetExitCodeProcess, CloseHandle and Sleep).

Has anybody rewritten this function for DF20?