On Wednesday 04 Dec 2002 09:48, Sylvain Petreolle wrote:
Here is what I get in wcmd : C>dir cygwin.bat Volume in drive C is Volume Serial Number is 1234-5678
Directory of C:\cygwin\
01/03/2002 05:05:16 55 cygwin.bat 1 file 55 bytes 0 directories 2,218,336,256 bytes free
C>wcmd /c cygwin.bat File not found
C>
For that to work wcmd needs to be able to find itself (ie it must be in one of the places Win32 searches for executables). wcmd has no special knowledge of its own name or how to invoke itself.
However even if wcmd is able to start another version of itself there is another problem. wcmd started in this way does not inherit the current directory from its parent, so unless you included the full path to cygwin.bat the child wcmd would not find it.
Dave .