You can use 2!:0 to replace winexec, I think.

I don't know whether winexec implements the 'from' keyword you are
using there, or if that's a 7z thing, and I don't know what it does.
But if you need to change the current directory for 7z to work
properly, you can use 1!:44 for that.

I hope this helps,

-- 
Raul

On Mon, Mar 22, 2021 at 8:04 AM Ewart Shaw <[email protected]> wrote:
>
> Back in the days of J6 and 11!:0 to interact with MS Windows, I wrote my
> own backup system calling 7-zip from J. It would check if any files in 200+
> directory trees had been updated since the corresponding .7z backup file
> was last updated, and if so then it would update the corresponding .7z
> backup file.
>
> The system still works pretty efficiently and has saved me a couple of
> times when computers died. However I want if possible to convert all my
> remaining legacy J programs to J9. The relevant J6 command is in effect
>   11!:0 'winexec "7z.exe a -r correspondingbackup.7z from updatedtreeroot"'
>
> I can't see how to do this in J9; is it possible? Sorry if that's a dumb
> question - for various reasons (most recently long covid) I've fallen
> behind with J developments.
>
> Many thanks, Ewart
> --
> Ewart Shaw [J.E.H.Shaw]       http://www.ewartshaw.com [Work in Progress]
>     [email protected]       http://www.facebook.com/ewart.shaw
> 3  ((4&({*.(=+/))++/=3:)@([:,/0&,^:(i.3)@|:"2^:2))&.>@]^:(i.@[)  <#:3 6 2
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to