On 22 Dec 2019, Spectre said the following...
SET /a anum=(%RANDOM%*10/32768)+1 copy \goodbye\%anum%.ans \sbbs\txt\goodbye.ans
Didn't know there was one in ANSI.SYS.. means I'll have to load it.. its not presently although it does wonders for display nothing actually
needs it. I'll give it a try see how it goes.
Also, not sure what setting a random number to a variable has to do with ANSI.SYS. =) The example I gave just cleans up the multipart batch you
posted. It should pick a pseudo-random number from the %RANDOM% var, set it
to the variable anum, multiply by 10, divide by the max of 32768, and add 1
to it to make it 1-10, instead of 0-9. Then your copy command just uses the random number in the variable in place of the ansi name, like 1.ans, 2.ans,
etc
What's the DOS message you're getting, or not getting when you use this?
--- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
* Origin: throwbackbbs.com -\- meriden, ct -\- (21:1/114)