>>cut "c:\" in lpDirectory param (you already specified a complet location of exe)
>>
>>?ShellExecute(0, "open", "C:\Program Files (x86)\Git\git-bash.exe", "", "", 1)
>>
>
>This is working directory -
C:\ was example only. It does not matter. git-bash is somehow wrapping / wrapped and will not work the right way with VFP calling it.
A stab in the dark: check the account under which it's running in each case. I know both should be you, but just indulge me.