Include your Windows path with double quotes ( " ) and the entire cygpath with reverse windows ( ` ).
My example:
> pwd /cygdrive/c/TestFolder/ScriptInsideHere > ls -al total 1 drwx------+ 1 Administrators Domain Users 0 Aug 25 13:08 . drwx------+ 1 Administrators Domain Users 0 Aug 25 13:13 .. -rwx------+ 1 Administrators Domain Users 29 Aug 25 13:08 hello_world.sh > cat hello_world.sh #!/bin/bash echo Hello World
Run above:
> bash `cygpath --unix "C:\TestFolder\ScriptInsideHere\hello_world.sh"` Hello World
source share