This works for me using J701 on Win7_64:
SH=: 3 : 0
'' SH y
:
ShellExecute=. 'shell32 ShellExecuteW > i x *w *w *w *w i'&cd
SW_SHOWNORMAL=. 1
NULL=. <0
if. 0=#x do.
r=. ShellExecute 0;(uucp 'open');(uucp y);NULL;NULL;SW_SHOWNORMAL
else.
r=. ShellExecute 0;(uucp 'open');(uucp x);(uucp dquote
y);NULL;SW_SHOWNORMAL
end.
)
SH 'd:\TestJ.xlsm' NB. excel
SH 'd:\win7x64sdkset.txt' NB. text with default program
'notepad.exe' SH 'd:\win7x64sdkset.txt' NB. text with notepad
--
David Mitchell
On 6/16/2011 21:02, William Szuch 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