Path statements and problems locating files

Benjamin Riefenstahl Benjamin.Riefenstahl@epost.de
Mon Oct 29 07:02:00 GMT 2001


Hi Simon,


"Simon, Dean SAL-TI/6" <Dean.J.Simon@shell.com.au> writes:
> @echo off
> 
> D:
> chdir \cygwin\bin
> PATH=/cygwin/bin:/usr/X11R6/bin:/usr/local/bin

In a COMMAND.COM batch file you must use COMMAND.COM commands and
conventions.  Cygwin will later automatically translate to its
representation for Cygwin programs.  That conversion from DOS
conventions to Cygwin conventions is not prepared to handle a PATH
variable that already is in Cygwin format.

So this line should be

PATH d:\cygwin\bin;d:\cygwin\usr\X11R6\bin;d:\cygwin\usr\local\bin

IOW, "PATH" is a command (you can also use "SET PATH=..."), the
separator is ";" and you need to use the Windows paths, not the Cygwin
mounts.


so long, benny



More information about the Cygwin-xfree mailing list