:: this script should run the sync bash script on windows, onecs cygwin has been installed set curdir=%~dp0 for /f %%i in ('git -C %curdir% rev-parse --show-toplevel') do set projectdir=%%i echo message directory is echo %projectdir% echo %curdir% C:\cygwin64\bin\bash -l %curdir%sync.sh PAUSE