delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/20/12:25:46

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
Subject: Re: running .bat files from bash
Date: Mon, 20 Dec 2004 18:17:48 +0100
Lines: 16
Message-ID: <1qfnqht261pte.dlg@thorstenkampe.de>
References: <20041215201009 DOT 16917 DOT qmail AT web26107 DOT mail DOT ukl DOT yahoo DOT com>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: p508cd639.dip0.t-ipconnect.de
User-Agent: 40tude_Dialog/2.0.14.1de
X-IsSubscribed: yes

* Donal Murtagh (2004-12-15 21:10 +0100)
> I've noticed that if I want to run a .bat file in bash I have to cd to the
> directory it's in first in order for it to run properly
> 
> For example, if I want to run c:\foo\bar.bat I have to use:
> 
> cd /cygdrive/c/foo
> bar.bat
> 
> if I try
> 
> /cygdrive/c/foo/bar.bat

cygstart /cygdrive/c/foo/bar.bat

Thorsten


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019