Printer Version | Table of Contents | Project Home Page |
RESTRICTIONS
@echo off :: a batch file to demonstrate generation of a :: random number between 3 and 10, and putting :: it into an environment variable named RAND Fdate /f#random /A10 /B3 /p"@set RAND=">junk.bat call junk.bat del junk.bat echo Random number is %RAND% :: use the RAND environment variable as you wish, here. :: cleanup set RAND=