X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=1.6 required=5.0 	tests=BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SARE_MSGID_LONG45,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <w2xabcf3ab91004220024n34a5b3f3raac07fa9139a9afb@mail.gmail.com>
References: <w2xabcf3ab91004220024n34a5b3f3raac07fa9139a9afb@mail.gmail.com>
From: "Yu, Lei" <yu.lei.sjtu@gmail.com>
Date: Thu, 22 Apr 2010 15:27:32 +0800
Received: by 10.101.131.35 with SMTP id i35mr20570026ann.39.1271921272268;  	Thu, 22 Apr 2010 00:27:52 -0700 (PDT)
Message-ID: <u2labcf3ab91004220027ie42b4de4u1bc7a20a01c98b45@mail.gmail.com>
Subject: How to Start Multiple Windows Apps Using Cygwin
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Hi there,
=C2=A0=C2=A0=C2=A0 I want to create a windows batch file, which can
1. initialize and start multiple Windows -- such as my gtalk and my MSN
2. keep the applications running
3. let the batch file itself exit without any trace.
=C2=A0=C2=A0=C2=A0 That is a bit difficult to achieve via normal windows ba=
tch file,
since batch does not provide a background running mode, so the whole
process will be blocked at the first application starts, and all the
subsequent application will not get called before the first exits.
=C2=A0=C2=A0=C2=A0 And then I turned to Cygwin.=C2=A0 Seems it could achiev=
e task 1 and
task 2.=C2=A0 However, it could not achieve task 3, which means that the
cygwin window will be kept open, until both (all) of the applications
get closed.=C2=A0 So I wonder whether there is any possibility, to achieve
all the 3 tasks I want?=C2=A0 And if yes, how?

=C2=A0=C2=A0=C2=A0 Below is the batch file I've written, any comments are w=
elcome.

Lei
-------------------------
rem @echo off
C:
chdir C:\cygwin\bin
bash --login -c "/c/Program\ Files/Google/Google\ Talk/googletalk.exe
/startmenu &"
bash --login -c "/c/Program\ Files/Windows\ Live/Messenger/msnmsgr.exe &"
rem exit
pause

--
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

