* execute bash script from explorer?

Steven E. Bailey nospamdot@dotnewsweekly.dot.net
Sun Sep 16 20:32:00 GMT 2001


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/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /