ifs and sets in the same line of code???
Posted: 30 Jul 2013 13:40
Can't seem to get this to work right for me now i'm wondering if it is possible to do.
If still a complete noob at batch so not sure what the do's and don't's are yet other than this is a don't (otherwise this would work)
Thanks in advance
Code: Select all
:itemspec
echo.
echo Which platform would you like to mod?
echo 1 Nes
echo 2 Master System
echo please enter category number
set /p %platform%=
if %platform%== 1 set %platform2%=Nes"
if %platform%== 1 goto Nes
if %platform%== 2 set %platform2%=MasterSystem
if %platform%== 2 goto MasterSystem
If still a complete noob at batch so not sure what the do's and don't's are yet other than this is a don't (otherwise this would work)
Thanks in advance