delorie.com/archives/browse.cgi | search |
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: | <w2xabcf3ab91004220024n34a5b3f3raac07fa9139a9afb@mail.gmail.com> |
References: | <w2xabcf3ab91004220024n34a5b3f3raac07fa9139a9afb AT mail DOT gmail DOT com> |
From: | "Yu, Lei" <yu DOT lei DOT sjtu AT gmail DOT com> |
Date: | Thu, 22 Apr 2010 15:27:32 +0800 |
Message-ID: | <u2labcf3ab91004220027ie42b4de4u1bc7a20a01c98b45@mail.gmail.com> |
Subject: | How to Start Multiple Windows Apps Using Cygwin |
To: | cygwin AT cygwin DOT com |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |