I googled it before i made the first post and found an example, but it was not the type i needed, also it flashed an error while running the script, i just wanted another one.
If someone could point out the error in that script it would be appreciated.
@ECHO OFF
FOR %%v IN (1 2 3 4 5 6 7 8 9) DO SET R%%v=%%v
%1 %0 :: 1 %R1% 2 %R2% 3 %R3% 4 %R4% 5 %R5% 6 %R6% 7 %R7% 8 %R8% 9 %R9%
ECHO. | TIME > RAND.DAT
:Loop1
FIND ".%2" RAND.DAT >NUL
IF ERRORLEVEL 1 FOR %%v IN (SET SHIFT GOTO:Loop1) DO %%v R%2=%3
DEL RAND.DAT
SET RANDOM=%3
SET TANDOM=%7
ECHO %RANDOM%%TANDOM% >rresult.txt
GOTO END
:END
the error flashed while running the above is
"Invalid Parameter to SHIFT command"
and FYI it does write the file "rresult.txt", but its the same data written into the file
everytime, and if im not mistaken thats not what it should be doing.
any help would be nice. =]
thanks.
cueballr. =]