This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: * execute bash script from explorer?
- To: cygwin at cygwin dot com
- Subject: Re: * execute bash script from explorer?
- From: "Steven E. Bailey" <nospam dot at dot newsweekly dot dot dot net at newsweekly dot net>
- Date: Sun, 16 Sep 2001 23:31:09 -0400
You could create a new shortcut to the cygwin.bat file and modify the
cmd line in the properties of that shortcut to read:
C:\CYGWIN\CYGWIN.BAT <script> <args>
The line in cygwin.bat that calls bash must be modified something like this:
bash --login -o vi %1 %2 %3 %4 %5 %6 %7 %8 %9
it should execute from explorer. You may have to use the full path name -
I have $HOME/bin set in my $PATH in autoexec.bat so I didn't have to.
Hope that's what you needed.
>I want to be able to execute a bash script by double clicking on the icon
>from explorer just as you can execute .bat files. Is there anyway you can
>execute cygwin.bat by passing it a parameter of a script to run?
>cygwin.bat /c/myscript.sh ?
>If so, then I could create a shortcut that might be accomplish this.
>Thanks
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/