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: From: "Berche, Guillaume" To: "'cygwin AT sourceware DOT cygnus DOT com'" Subject: RE: Cygwin 1.0: Error when launching MSDOS bat file from bash on Windows 2000 Date: Wed, 26 Apr 2000 10:00:30 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id DAA22480 Chris, > And, if cygwin invokes the MSDOS shell using this path: > > command.com /foo/bar/blaz/blat.bat > > what kind of behavior would you predict? Well when experimenting it seems that it does not work because it launches a new interactive MSDOS command shell instead of interpreting the bat file. However the command cmd.exe /C /foo/bar/blaz/blat.bat seems to work fine with both relative and absolute paths on NT and Windows 2000. It also seems that the command cmd.exe /C `cygpath -w /foo/bar/blaz/blat.bat` also works fine. If this can help I quote below the help file related to cmd.exe on NT 4.0. If I'm the only one to have troubles with this problem then it might not be worth fixing it ?! I'll adapt the bash scripts (that launch BAT files) we're using to use a workaround. It's just difficult for native NT users to understand that when using a bash shell they can execute bash scripts but not MSDOS scripts, it makes their adoption of cygwin harder but it's no big deal, I'll try to explain... Guillaume. Cmd Starts a new instance of the Windows NT command interpreter, CMD.EXE. A command interpreter is a program that displays the command prompt at which you type commands. Use the exit command to stop the new command interpreter and return control to the old one. cmd [/x | /y] [/a | /u] [/q] [/t:fg] [ [/c | /k] string] Parameters /c Carries out the command specified by string and then stops. /k Carries out the command specified by string and continues. /q Turns the echo off. /a Creates ANSI output. /u Creates Unicode output. /t:fg Sets the foreground and background colors. (For more information, see the color command.) /x Enables extensions to the Windows NT version of CMD.EXE, to provide a richer shell programming environment. The following commands use the extensions: del ( erase), color, cd (chdir), md (mdir), prompt, pushd, popd, set, setlocal, endlocal, if, for, call, shift, goto, start, assoc, and ftype. For details, see the Help for each command. /y Disables extensions to the Windows NT version of CMD.EXE, for backward compatibility reasons. The extensions are enabled by default. string Specifies the command you want to carry out. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com