Reputation: 157
My problem is I´ve got no idea how to write this script and I haven´t found any description about the command which can be used! So I´m trying to start the cmake-gui with a shell script (reason for that is to set the paths for cygwin in cmake) If I´m running this bat:
@echo off
C:
chdir C:\cygwin\bin\
bash --login -i -c "exec ./cmake-gui"
the error is because I´ve got no idea how to use the -c parameter to change the directory!
Upvotes: 0
Views: 973
Reputation: 12583
You can chain commands by separating them with ;
, (or &&
or ||
, depending on your needs). So you'd write something like this:
@echo off
C:
chdir C:\cygwin\bin\
bash --login -i -c "cd /your/path/ && exec ./cmake-gui"
Upvotes: 1