Batch fle RANDOM

Microsoft Windows xp professional editio...
October 28, 2009 at 15:36:34
Specs: Windows XP
Hello, i need a batch file that will RANDOMLY GOTO a certain area


EXAMPLE

it selects a random area (area = :MENU, :MENU2 ... ect)

So each time i open it, it will go to a certain area


See More: Batch fle RANDOM

Report •


#1
October 28, 2009 at 16:37:42
Hi Kittybobir

@echo off
cls
set /a R=%random%%%5
goto Menu%R%
exit /b


:Menu0
echo Menu%R%
exit /b

:Menu1
echo Menu%R%
exit /b

:Menu2
echo Menu%R%
exit /b

:Menu3
echo Menu%R%
exit /b

:Menu4
echo Menu%R%
exit /b


Report •
Related Solutions


Ask Question