Change working directory of java code to location of batch file before code is launched, call rt.exec(”batchfile.bat”), batch file runs.
Leave working directory alone, call
File dir = new File(”C:\\path\\to\\batch\\file”);
rt.exec(”batchfile.bat”, null, dir);
Batch file does not run, giving a file not found error.
Change second line to rt.exec(”cmd /c batchfile.bat”, null, dir); - batch file runs.
I’m not sure why [...]
In this particular case, about an hour and a half.
I’m sure there’s a moral in there somewhere, but other than “you apparently need to know more about how the APIs work internally than should be necessary” I can’t seem to find it.
Hey ho. Ever forward.
¶
Posted 20 September 2007
† Simes
§
Java
‡
°
Every so often I get a small surge of creativity which enables me to dismantle someone else’s work and twist it to my own nefarious purpose. In the latest of this irregular series, I present: the Bioshock gamercard sig.
Uses my gamercard parser thing to dynamically update the score, and stuff. Nothing particularly special, perhaps, but [...]
Lotus Domino. Making some stuff easy, and some fairly obvious stuff stupidly convoluted.
I have a subform which has a version number in it. It’s in the subform so it only needs to be changed in once place to show up in all of the site design where it needs to be, and it’s not in [...]
Sometimes when you’re working on a Domino web app, you need a NAB picker to help your users fill in name fields. At such times, you scour the web because you know that clever people like Scott Good and Matt White are out there and have probably done it already. And you find that they [...]
After a helpful response from Charles to my last post on the subject, I pulled the 0.9.3 JRuby build and ran my test against it. On the way I ran into a few other things and tidied up a few more as a result.
Firstly, the jars are now in the jre/lib/ext folder of my Notes [...]
As many of you may know, I have something of a love/hate relationship with Lotus Domino. I love it for some of the things you can do with it, and I hate it for some of the hoops it makes you jump through when you try and do something slightly different. Also I hate LotusScript, [...]
¶
Posted 22 February 2007
† Simes
§
‡
°
A new entry on the Code and Stuff page - exports iTunes playlists to .M3U equivalents. Handy for XBox 360 owners who use Media Connect but want to manage their custom playlists in iTunes on their PC.
Me, in other words.
¶
Posted 29 October 2006
† Simes
§
‡
°
Our app has kind of a portal-y front-end on it, which means we have a frame set with between two and four frames, all of which use basically the same CSS. The CSS is not cacheable because we’re running over https, so it adds a substantial amount to the payload for any given portal page.
The [...]
¶
Posted 18 June 2005
† Simes
§
‡
°