let's say I have this simple Gui, with button "Dir" that will run the command: Dir
Code: Select all
Gui, Add, checkbox, vA, A
Gui, Add, Checkbox, vB, B
Gui, Add, Checkbox, vC, C
Gui, Add, Checkbox, vD, D
Gui, Add, DropDownList, ,Pause||Dont Pause|Wide
Gui,Add,Button, gDir, Dir
Gui, Show, center
Return
Dir:
Gui, Submit, NoHide
Run, %ComSpec% /k Dir ;here goes as checked above
return
I need the command:
if Pause is choose
Code: Select all
Dir /p
Code: Select all
Dir /P /b /d
So the command is what we chose to add to it after word :"Dir"
Is there any easier way before I go through hundreds of (If, Then, Run) ??
Any suggestion is appreciated