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: <4A443035 DOT 3000904 AT gmail DOT com> <0105D5C1E0353146B1B222348B0411A201C30CE1DE AT NIHMLBX02 DOT nih DOT gov> Date: Fri, 26 Jun 2009 10:14:20 -0400 Message-ID: Subject: Re: Launching CMD.EXE windows from cygwin bash From: "Mark J. Reed" To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 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 -- 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