X-Recipient: archive-cygwin AT delorie DOT 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: References: From: "Yu, Lei" 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: Subject: How to Start Multiple Windows Apps Using Cygwin To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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