running shell scripts
Since .sh files need to run inside a unix shell, you can't simply double click them without modifying either the file types settings in windows, or to have the shortcut run 'bash', and then pass your script as an argument to bash.
modifying the sh windows file type
* note that this may not be possible in restricted permission environments
using shortcuts
- create a windows shortcut to the .sh file
- modify the properties of the shortcut
- in the 'Shortcut' tab, change the target as follows:
C:\cygwin\bin\bash.exe -l '/cygdrive/x/path/to/your/script.sh'
- you may also want to see the bash pause page