* Mark Tarver <
dr.mtarver@gmail.com>
| On Tuesday 30 January 2024 at 16:24:37 UTC, Rich wrote:
| > Mark Tarver <
dr.mt...@gmail.com> wrote:
| > > I want to run TCL/tk from a batch file in Windows. My event loop
| > > program loads if I click on the file eventloop.tcl and I get a widget
| > > window. What I want to do is get exactly the same thing from a batch
| > > file.
| > Then have the batch file run:
| >
| > wish.exe eventloop.tcl
| >
| > somewhere within it. Note that if wish.exe is not on your PATH you man
| > have to give the full path to wish.exe (i.e. something like:
| > c:\Users\Someone\Tcl\bin\wish.exe)
| >
| > Now, if you mean something else, you'll need to be more specific as to
| > what you really mean.
| I've done this as directed; but what I get is a brief flicker of a window (WISH?)
| and then zip. If I click on eventloop.tcl directly I get WISH presumably with
| eventloop.tcl loaded.
Add a 'pause' statement after wish.exe to see error messages in the .bat console window while debugging the batch script.
wish.exe eventloop.tcl
pause
It might be that you need to specify both wish.exe and eventloop.tcl with
full path names.
c:\ProgramFiles\tcl\wish.exe c:\users\blah\tcl\eventloop.tcl
pause
HTH
R'
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)