Hi Tim,
the Start Menu file contains for each StartMenuCommand entry the 'exec' attribute describing the actual command line.
The command line can contain arguments and therefore fglrun must call something parsing the command line in a known way.
Internally fglrun calls the same routine which is also serving the "RUN" statement.
What you can do on Windows according to the doc of "RUN" is setting COMSPEC to something else than cmd.exe
Suppose you are willing to write a small Windows C-program mycmd.exe and
suppose you set "SET COMSPEC=mycmd.exe" fglrun translates a
RUN "fglrun foo" or the exec string exec="fglrun foo" from the StartMenuCommand to
call
CreateProcess(..,"mycmd.exe /c fglrun foo" ,...);
mycmd.exe could then eat the /c and pass the "fglrun foo" to CreateProcess() which should be more lightweight than cmd.exe.
In any case you will need an additional executable to spawn your children, you can't surround that.
HTH and Kind Regards,Leo