I made a simple batch file to execute a executable via some options which are provided upon launch.
Some thing like this :
:A
Echo Option 1
Echo Option 2
Set /p set1=Choice :
if %set1%==1 set A=Set1_1
if %set1%==2 set A=Set1_2
goto Set_2
:B
Echo Option A
Echo Option B
Set /p set2=Choice :
if %set2%==A set B=Set2_A
if %set2%==B set B=Set2_B
goto launch
:launch
program.exe -%A% -%B%
So basically this works. But what i need to have is a way to include another launch parameter for my program if both "Option 1" and "Option A" are selected. Not in "Option 2" and "Option B".
so that my launch look like this
program.exe -%set1% -%set2% -%if1_A%
Edit : i've made some mistakes here on this command line but i won't correct it since @avery_larry pointed it out.
I'm sorry if i made this confusing, please let me know if need to clarify or elaborate further. :)