www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <0105D5C1E0353146B1B222348B0411A201C30CE1DE@NIHMLBX02.nih.gov> |
References: | <loom DOT 20090626T005311-580 AT post DOT gmane DOT org> <4A443035 DOT 3000904 AT gmail DOT com> <f60fe000906252014m484205c5t78a03976982f5728 AT mail DOT gmail DOT com> <0105D5C1E0353146B1B222348B0411A201C30CE1DE AT NIHMLBX02 DOT nih DOT gov> |
Date: | Fri, 26 Jun 2009 10:14:20 -0400 |
Message-ID: | <f60fe000906260714j1a2785c6re24616eab9514b5a@mail.gmail.com> |
Subject: | Re: Launching CMD.EXE windows from cygwin bash |
From: | "Mark J. Reed" <markjreed AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
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 |
I wrote: >>cygstart /cygdrive/c/windows/system32/cmd.exe >> >>or, if you have that in your $PATH, just >> >>cygstart `which cmd` As it turns out, just cygstart cmd works on both my installations at work (one 1.5 and one 1.7, both on Vista); on the PC at home (1.7 on XP) I had to specify the full path to cmd.exe. Will have to investigate that when I get home. Barry Buchbinder pointed out: > cygstart has an option to set the working directory. An excellent point! cygstart -d /path/to/directory cmd should do the trick. -- Mark J. Reed <markjreed AT gmail DOT com> -- 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 |