In c++ is there a way to run a command in a program that has been opened using system(), all this being done programatically.
ie:
open git bash
system("start \"\" \"c:\\Program Files\\Git\\bin\\sh.exe\" --login -i");
then within the new opened git bash window cd back two directories
"cd ../../"