Does anyone know how i would implement a directive into a .bat file that allows the user to go to what they typed ie
In a normal batch file you have this
if %input%==item1 goto item1
but you need that for every directive there is so if you had item1, item2, item3, item4 and item5 you would have this
if %input%==item1 goto item1
if %input%==item2 goto item2
if %input%==item3 goto item3
if %input%==item4 goto item4
if %input%==item5 goto item5
How would i get it so that if i had 56 items i wouldn't need 56 lines of code only one that is dynamic like
if %input%=={help} goto {input}
So that way it goes to the input the help and input are the bits i need help with, its kinda hard if anyone has a solution please let me know, it is not an alternative for me to have lines and lines of code because in this instance i am dealing with about 14000 directives