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 sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Apparently-From: Message-ID: <3AC4E2E8.36A22AF0@yahoo.com> Date: Fri, 30 Mar 2001 14:47:52 -0500 From: Earnie Boyd Reply-To: Earnie Boyd X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: "Larry Hall (RFK Partners, Inc)" CC: Matt Minnis , cygwin AT cygwin DOT com Subject: Re: Batch files References: <5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20010330170402 DOT 042f8150 AT mailhost> <4 DOT 3 DOT 1 DOT 2 DOT 20010330121322 DOT 020d15b0 AT pop DOT ma DOT ultranet DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Larry Hall (RFK Partners, Inc)" wrote: > > At 11:17 AM 3/30/2001, Matt Minnis wrote: > > >Is there a way to get Cygwin to recognize that *.bat files are executeable as: > >fred.bat & fred (without the .bat)? > > Anything's possible. foo.bat works for me though. > Hmm... This isn't a FAQ yet?! I've explained many times how to do this. 1) Create a noop program named #!.exe 2) Install the it in C:/cygwin/bin and C:/windows/system32/ 3) Add `#! c:/windows/system32/cmd /c' to the .bat file as the first line. Earnie. P.S.: cat << EOD > noop.c int main (void) {return 0;} EOD gcc -o \#\!.exe noop.c _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple