This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: .exe won't launch


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]