I hate to say it but fork (via fork_jtask_) is implemented in a very different way on J701 for Windows than it is on J701 for Linux, for example.
On Windows, fork_jtask_ uses the CreateProcess API Windows call. On Linux, it uses the 2!:1 foreign verb. Looking at the J source, 2!:1 seems to use the Linux function system(). This is the brief documentation for system() that I found: system - execute a shell command So, to me, using ShellExecute in Windows actually seems a bit more similar to what J is doing in Linux to execute a command than what fork_jtask_ does in Windows. -- David Mitchell On 6/17/2011 11:36, Devon McCormick wrote: > I like something like "fork" because it's more platform-independent. It > would be nice if it returned a PID, though. > > On Fri, Jun 17, 2011 at 11:06 AM, David Mitchell<[email protected]>wrote: > >> The SH verb works for me on WinXP also: >> >> SH 'c:\t.txt' >> 42 >> 'wordpad.exe' SH 'c:\t.txt' >> 42 >> >> -- >> David Mitchell >> >> On 6/17/2011 8:24, Devon McCormick wrote: >>> This works for me for J7 on Windows XP: >>> fork 'C:\Program Files\Microsoft Office\Office14\Excel.exe' >>> >>> On Thu, Jun 16, 2011 at 9:02 PM, William Szuch<[email protected] >>> wrote: >>> >>>> In J602 I could execute various programs as part of a job when a script >> was >>>> loaded, >>>> >>>> >>>> >>>> Eg. wd 'winexec ...' >>>> >>>> >>>> >>>> This was used to open excel workbooks, word reports, notepad etc. >>>> >>>> >>>> >>>> As WD is not supported in J701 I have not been able to achieve the >> same >>>> functionality in J701. >>>> >>>> >>>> >>>> Any help greatly appreciated. >>>> >>>> >>>> >>>> >>>> >>>> Regards >>>> >>>> >>>> >>>> Bill Szuch >>>> >>>> >>>> >>>> >>>> >>>> ---------------------------------------------------------------------- >>>> For information about J forums see http://www.jsoftware.com/forums.htm >>>> >>> >>> >>> >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > > > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
