Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <20000421030938.25518.qmail@web119.yahoomail.com> Date: Thu, 20 Apr 2000 20:09:38 -0700 (PDT) From: Earnie Boyd Reply-To: earnie_boyd AT yahoo DOT com Subject: Re: Cygwin 1.0: Error when launching MSDOS bat file from bash on Wind ows 2000 To: "Berche, Guillaume" , "'cygwin AT sourceware DOT cygnus DOT com'" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- "Berche, Guillaume" wrote: > Hi, > > I recently received a machine with Windows 2000 installed on. I installed my > copy of the Cygwin CD 1.0 I purchased but I run into the following problem: I > can not run an MSDOS bat file from bash when a relative path is specified. > > Examples: > > > cd / > > mkdir -p test1/test2 > > cat > test1/test2/run.bat > REM start of MSDOS test > PAUSE > REM end of MSDOS test > ^C > > Hmm... Why would one expect a DOS bat file to execute under BASH??? However, it is possible to start the DOS COMMAND INTERPRETER from BASH by specifying it so: #! c:/Windows/System32/cmd.exe /c REM start of MSDOS test PAUSE REM end of MSDOS test However you need a noop program named #.exe that is on the Windows PATH so that the DOS COMMAND INTERPRETER doesn't croak on the #! line. > > cat test1/test2/run.bat > 'test2' is not recognized as an internal or external command, > operable program or batch file. > > cd test1 > > test2/run.bat > > > > cd test2 > > ./run.bat > '.' is not recognized as an internal or external command, > operable program or batch file. > > > > > #However when I specify a complete path it works: > > /test1/test2/run.bat > I don't know why this would work unless the W2K DOS COMMAND INTERPRETER understands / as a directory delimiter and you were actually in the DOS COMMAND INTERPRETER issuing the command. > C:\test1\test2>REM start of MSDOS test > > C:\test1\test2>PAUSE > Press any key to continue . . . > > C:\test1\test2>REM end of MSDOS test > > > Any idea of the problem. The same problem appears also with beta 20.1. Do you > know if this would have been fixed in 20.2? > Oh, that's the problem we forgot to release 20.2 ;^) We jumped to version 1.1.0 instead. > Thanks for your help, > Don't know if I was but you're welcome anyway. ===== --- Earnie Boyd: __Cygwin: POSIX on Windows__ Cygwin Newbies: __Minimalist GNU for Windows__ Mingw32 List: Mingw Home: __________________________________________________ Do You Yahoo!? Send online invitations with Yahoo! Invites. http://invites.yahoo.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com