!#/usr/bin/bash if [ $# -eq 0 ]; then echo "Please specify a file to open." else args="$(cygpath -w $@)" /path/to/notepad++.exe $args fi