delorie.com/archives/browse.cgi | search |
Been there, done that! I'm having quite a bit of deja-vu relative to this particular solution. Earnie suggested making an executable called #!.exe If this is done, then you can expect the batch file to grok it if its in the path. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX At 03:09 PM 3/30/2001, Andrew Markebo wrote: >Will cmd still grokk the batch-file if you have a #! on the first >line?? > > /Andy > >/ Earnie Boyd <earnie_boyd AT yahoo DOT com> wrote: >| "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 > >-- >Want to unsubscribe from this list? >Check out: http://cygwin.com/ml/#unsubscribe-simple -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |