On Tue, Jan 16, 2007 at 10:13:16PM +0100, Jeremias Maerki wrote: > Wow! That looks like an awful lot of work. It seems to work but it is > just a little irritating that it opens a new terminal window.
For me it was, because I had to browse the documentation endlessly. For an experienced JScript programmer it may not be too difficult. It was an old wish of mine to get some more experience with JScript, which I got with this script. JScript has access to the Win32 API and ActiveX objects, which provides access to running processes, installed applications and all sorts of other stuff on a Windows desktop. The final run call was my greatest problem. I did not like the extra window either. You also see a function which uses the exec call. It does not open a new window, but it runs asynchronously and without a terminal. You have to poll the process regulary, and check its status. You have to catch its STDOUT and STDERR and print that on the script's STDOUT and STDERR. There does not seem to be a way to let the process communicate directly with the user. I hope someone with more experience with JScript can improve this. Simon -- Simon Pepping home page: http://www.leverkruid.eu
