delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/16/10:03:11

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A881181.7080209@cwilson.fastmail.fm>
Date: Sun, 16 Aug 2009 10:02:41 -0400
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: run-1.1.11-1
References: <200908161148 DOT n7GBm9tk031927 AT StraightRunning DOT com>
In-Reply-To: <200908161148.n7GBm9tk031927@StraightRunning.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Colin Harrison wrote:

> //test.js
> //JavaScript to display xeyes without a local Command Prompt...
> var wshell = new ActiveXObject('WScript.Shell');
> wshell.Run('"C:\\Program Files\\Xming\\xeyes.exe" -display :2',0);
> 
> It's the '0' that does the magic.

Yep, I've even got an implementation in VB that does the same thing, as
well as parsing an XML spec to enable setting the PATH and other
environment variables before launching the target.  It was the prototype
for my "run2" application.

However, a lot of folks are used to using the run.exe tool, and I'd hate
to have to tell them "nope, not gonna fix it; write some javascript
instead". <g>

But it's good to get this solution into the mailing list archives.

--
Chuck

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019