Fabulous, Larry! That's exactly what I need.
Dennis ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Lawrence Lustig Sent: Thursday, October 09, 2008 8:48 AM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: Passed parameters to compiled app << Is it possible to pass one or more parameters to a compiled app? Say the compiled app is called test.exe I would like to start it thus: test.exe xxx I’d like the compiled app to be able to capture xxx in a variable to be used by the program. >> Yes, but you have to call into Windows using the new DLCALL facility to get the command line, then parse it yourself. Here's some code I cribbed from Mike Byerly to do this: IF (CHKFUNC('GetCommandLineA')) = 0 then STDCALL FUNCTION 'GetCommandLineA' ALIAS 'GetCommandLine' () : TEXT ENDIF SET VAR vCommandLine = (DLCALL('Kernel32', 'GetCommandLineA')) -- Larry

