ok.. So I tried to create a bat file that would open a menu the amount of times as you inputted a number ex.
set /p opt= Amount:
Then after that you now have the %opt% set to the "amount" you inputted.
Then the way the menu works is like this..
:start1
if %opt%==0 goto end
:start2
start test.bat
set %opt%-1
if %opt%>0 goto start2
goto end
so that's pretty much the whole script though the marked part doesn't seem to work... Why is that PLEASE HELP!
The entire script...
@Echo off
title screen power...
mode 150
color a
:start
echo please enter the amount of Starts you want.
echo.
set /p opt= Amount:
if %opt%==0 goto end
:begin
start test.bat
set %opt%-1
if %opt%>0 goto begin
goto end
:end
set /p opt= Amount:
Then after that you now have the %opt% set to the "amount" you inputted.
Then the way the menu works is like this..
:start1
if %opt%==0 goto end
:start2
start test.bat
set %opt%-1
if %opt%>0 goto start2
goto end
so that's pretty much the whole script though the marked part doesn't seem to work... Why is that PLEASE HELP!
The entire script...
@Echo off
title screen power...
mode 150
color a
:start
echo please enter the amount of Starts you want.
echo.
set /p opt= Amount:
if %opt%==0 goto end
:begin
start test.bat
set %opt%-1
if %opt%>0 goto begin
goto end
:end