Re: Batch file wrappers on Windows

2010-06-22 Thread Paul Moore
On 22 June 2010 15:15, Lars Nilsson wrote: > Maybe Windows Script Host is an option, if you haven't looked at that one yet. Yes, WSH/VBS is a reasonable option. There are some gotchas which you need to be careful of though - there's *still* only one filetype (.vbs) which is executed by cscript o

Re: Batch file wrappers on Windows

2010-06-22 Thread Lars Nilsson
On Tue, Jun 22, 2010 at 10:15 AM, Lars Nilsson wrote: > On Tue, Jun 22, 2010 at 5:08 AM, Paul Moore wrote: >> On 22 June 2010 00:11, Rick Moynihan wrote: >>> On 21 June 2010 18:42, Paul Moore wrote: 3. Using a bat file to start a GUI application from Explorer causes an unnecessary and

Re: Batch file wrappers on Windows

2010-06-22 Thread Lars Nilsson
On Tue, Jun 22, 2010 at 5:08 AM, Paul Moore wrote: > On 22 June 2010 00:11, Rick Moynihan wrote: >> On 21 June 2010 18:42, Paul Moore wrote: >>> 3. Using a bat file to start a GUI application from Explorer causes an >>> unnecessary and ugly console window to appear. >> >> You should use "javaw"

Re: Batch file wrappers on Windows

2010-06-22 Thread Paul Moore
On 22 June 2010 00:11, Rick Moynihan wrote: > On 21 June 2010 18:42, Paul Moore wrote: >> 3. Using a bat file to start a GUI application from Explorer causes an >> unnecessary and ugly console window to appear. > > You should use "javaw" instead of "java" to start the JVM without the > console wi

Re: Batch file wrappers on Windows

2010-06-22 Thread Paul Moore
On 21 June 2010 22:12, Russ Olsen wrote: > Paul, > > One way would be to use the cljw.exe that comes with > dejour. This is a windows executable that runs clojure > without creating that annoying extra window. Thanks. That's certainly one option - I could probably without too much difficulty put

Re: Batch file wrappers on Windows

2010-06-21 Thread Rick Moynihan
On 21 June 2010 18:42, Paul Moore wrote: > 3. Using a bat file to start a GUI application from Explorer causes an > unnecessary and ugly console window to appear. You should use "javaw" instead of "java" to start the JVM without the console window appearing. This should ship with both the JRE an

Re: Batch file wrappers on Windows

2010-06-21 Thread Russ Olsen
Paul, One way would be to use the cljw.exe that comes with dejour. This is a windows executable that runs clojure without creating that annoying extra window. I haven't really looked into making dejour work with Leiningen yet, so that may be a problem for you. You can find the dejour project on

Re: Batch file wrappers on Windows

2010-06-21 Thread Kevin Kelley
On Mon, 21 Jun 2010 12:42:47 -0500, Paul Moore wrote: The common way of running Java applications (and hence Clojure code) on Windows seems to be to use a batch file wrapper (for example, lein.bat for Leiningen). It seems to me that there are a number of issues with this: [...] Before I spend t

Batch file wrappers on Windows

2010-06-21 Thread Paul Moore
The common way of running Java applications (and hence Clojure code) on Windows seems to be to use a batch file wrapper (for example, lein.bat for Leiningen). It seems to me that there are a number of issues with this: 1. Batch files don't nest well - if I want to call lein.bat from within another