Dan gave me the following to solve this problem (Windows-only):
getCommandLine =: [: 15!:1@:,&0 _1@:> 'kernel32 GetCommandLineA *c' 15!:0 ''"_ So, when I start my alternatively-named version of J, I can run this: getCommandLine '' "C:\Program Files\j601\RocketJ.exe" -jprofile c:\amisc\jsys\profile.ijs On 6/22/07, Raul Miller <[EMAIL PROTECTED]> wrote:
On 6/22/07, Devon McCormick <[EMAIL PROTECTED]> wrote: > It looks like ARGV_j_ contains the name of the executable version of J > that's been invoked. This seems to be true for jconsole, but j.exe seems to ignore the command line. With jconsole, you'll see the path you used, and you can tell whether or not .exe was appended. This is not the case for j.exe. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
-- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
