ParamStr is going to return the Args to the EXE of the current process. Just use pound sign or pipe to mark the beginning of the Arg string and then to delimit the rest of it to make it easy in RBase to excise the first part of the CommandLine containing the EXE PathName, Like:
"C:\RBTI\RBG76\RBG76.exe" "#Arg1#Arg2#Arg3" Then use SLOC and SGET to grab the Args part. From there it's a snap. ----- Original Message ----- From: "Lawrence Lustig" <[EMAIL PROTECTED]> To: "RBASE-L Mailing List" <[email protected]> Sent: Tuesday, June 24, 2008 1:15 PM Subject: [RBASE-L] - Re: Compiler -- get command line arguments > << > if (chkfunc('GetCommandLine')) = 0 then > stdcall function 'GetCommandLineA' alias 'GetCommandLine' () : TEXT > endif > > SET VAR vresult = (dlcall('Kernel32', 'GetCommandLine')) > RETURN >>> > > Nice catch! I'll give it a try. > > You don't know, by any chance, if one were to write one's own DLL in Delphi > for this purpose, would the Delphi standard library function Param() > correctly get the parameters from the original EXE command line? That would > be sweet (let Delphi parse them out and return them pickled and comma > separated to R:Base). > -- > Larry

