X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <5195c8760901040237t233cb831k2a3041b737b8cd8e@mail.gmail.com> Date: Sun, 4 Jan 2009 16:07:37 +0530 From: "Jeenu V" To: cygwin AT cygwin DOT com Subject: Re: Trick cmd.exe of Windows XP to run cygwin Batch Script. In-Reply-To: <17f020130901040231o7844d628m9b71b6d09be0ee91@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <17f020130901040231o7844d628m9b71b6d09be0ee91 AT mail DOT gmail DOT com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Sun, Jan 4, 2009 at 4:01 PM, Frank Fesevur wrote: > Hongyi Zhao wrote: > >> I've some cygwin/bash scripts and I want to invoke them without log >> into the Cygwin's bash terminal. Is this possible? > > I have written a small utility named 'weft' that can set a file > association to start .sh-files with a cygwin bash by double clicking > it in the Explorer. I don't have it here anymore, so I have to dig > that up in my archives if you interested. > Do you really need a utility for that? I mean you could always do that with Windows explorer - Tools->Folder Options; at the File Types tab, you can associate .sh files with bash executable. Or use the context menu Open With and then browse and select bash.exe, with "Always use this program .." option checked. Alternatively, place the following thing into a batch file (.bat) and double-click it. c:\your\path\to\bash.exe your_script.sh -- :J -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/