This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: how to run a program from the bash console
- From: Weiqi Gao <weiqigao at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 31 Aug 2005 09:16:57 -0500
- Subject: Re: how to run a program from the bash console
- References: <4315BB19.2080100@vt.edu>
On 8/31/05, William Creel <wdcdw@vt.edu> wrote:
> I am attempting to run a Windows program from the Bash console. I have
> attempted modifying my path in the .bash_profile file in my home
> directory with the following line:
>
> PATH=/cygdrive/c/'Program Files'/'<program folder>'/<program
> executable>:$PATH
> export PATH
>
> This does not appear to work. Does anyone know how to do this?
Should be
PATH=/cygdrive/c/'Program Files'/'<program folder>'/:$PATH
export PATH
The program executable's name should not be part of the PATH
enironment variable.
--
Weiqi Gao (高为奇)
weiqigao@gmail.com
http://www.weiqigao.com/blog/