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

"John Randall" <[EMAIL PROTECTED]> writes:

> Is the problem that Bill's external program terminates?  If so, the window
> flashes 0 and goes away.  The output can be redirected to a file, which
> can be displayed.

Thanks, Raul and John.  (Thanks, too, to Bill L., but I'll need a bit
more reading to figure out CreateProcess or ShellExecute.)

My program is a compiled executable that takes either 0, 1, or 2
filename arguments describing the input and output files (I didn't write
the program that created my program, so I don't have a lot of control
over it).  If it gets none, it prompts for filenames.  If it gets one,
it prompts for the second but can take a default.  If it gets 2, it just
runs.  In any case, it writes the output file and terminates.

Your idea of starting J from bash worked right away for the 0 arguments
case.  It opens a window, asks for filenames, and writes the output file
before terminating.

When I give it an argument, though, I get '|domain error: wd', no matter
whether I give it one or two arguments, despite my trying to tell J that
the User Manual says

,----
| The next example executes Notepad with the given filename argument
| (Notepad loads the file).
| 
|    wd 'winexec "\windows\notepad.exe system\main\dates.ijs"'
| 0
`----

Arrgh.  You quote the entire argument to winexec.  Now it works.

Thanks, all.  

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.1 (MingW32)
Comment: For more information, see http://www.gnupg.org

iD8DBQFEHF7/3J3HaQTDvd8RArauAJ4zt70LTibwYgjYQ3ooLNLtRfVEKgCggHvT
fqIV/ggPw26QUo1hfRcoAw8=
=xkAQ
-----END PGP SIGNATURE-----

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to