delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/16/08:32:27

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: .exe won't launch
Date: Tue, 16 Jan 2007 13:31:57 -0000
Message-ID: <036301c73972$b1f273a0$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <b0788e8c0701160529l17b6d764m68d9f1fe053c3cf4@mail.gmail.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

On 16 January 2007 13:30, tyger tyger wrote:

> Dear all
> 
> If I compile a c/c++/f95 program to produce an executable, and I try
> to launch that executable I have a problem:
> 
> If I try to launch the .exe from the same folder containing the .exe
> (i.e just by typing the .exe's filename) cygwin returns
> 
> 'command not found'
> 
> If I got to folder above, and launch (by typing the lower folder name,
> backslash, .exe filename) the executable launches fine.
> 
> Any ideas?

  You could stay in the same folder and use dot, backslash, exe filename as
well.  That's how posix shells work.  The current directory ('.') isn't
included in the path by default, which is different from how DOS works; hence
your surprise.  (This is in the FAQ, btw.)


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
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