-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dan,

Back on March 1, 2007, you provided a modified tasks.ijs to let me set
pwd and call a shell script:

Dan Bron <[EMAIL PROTECTED]> writes:

> I needed exactly this and modified tasks.ijs to permit me.  The
> changes are simple.  First,
>
>         open 'task'
>
> then find the definition of CreateProcessF_jtask_ , which is on line
> 77 and change it from this:
>    
>      CreateProcessF=: 'kernel32 CreateProcessA i i *c i i i  i i i *c *c' &cd
>
> to this:
>    
>      CreateProcessF=: 'kernel32 CreateProcessA i i *c i i i  i i *c *c *c'&cd
>
> then find the definition of CreateProcess_jtask_ which is on line 109,
> and change the 20th line of the definition (the 129th line of the
> file) from:
>
>      'r i1 c i2 i3 i4 f i5 i6 si pi'=. CreateProcessF 0;y;0;0;inh; f;0;0;si;pi
>
> to  
>
>      'r i1 c i2 i3 i4 f i5 i6 si pi'=. CreateProcessF 0;y;0;0;inh; 
> f;0;cwd;si;pi
>
> and add this line just above that one:
>
>      if. 0 = L.y do. cwd=.<0 else. 'y cwd'=.y end.

Is the same thing valid for J602?  I know line numbers have changed:
CreateProcessF is now on line 94, and it is called in the 19th line of
CreateProcess, which is on line 144 of the script.  Since I don't know
much (any) about Windows calls, the arguments to CreateProcessA make no
sense to me, and they have changed.

I'd experiment, but I figure you've probably already done this and might
save me making some changes that might cause instability.

Thanks,

Bill
- -- 
Bill Harris                      http://facilitatedsystems.com/weblog/
Facilitated Systems                              Everett, WA 98208 USA
http://facilitatedsystems.com/                  phone: +1 425 337-5541
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: For more information, see http://www.gnupg.org

iD8DBQFH6T9H3J3HaQTDvd8RAnDgAJ9s7hoayOoJu3/imk0Ao8AgZU/cjwCff2iF
jJVHaXdNRAE9dV2mWlvIOX8=
=H7CC
-----END PGP SIGNATURE-----
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to