X-Recipient: archive-cygwin@delorie.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.20090626T005311-580@post.gmane.org> 	 <4A443035.3000904@gmail.com> 	 <f60fe000906252014m484205c5t78a03976982f5728@mail.gmail.com> 	 <0105D5C1E0353146B1B222348B0411A201C30CE1DE@NIHMLBX02.nih.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@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
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

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@gmail.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

