代码如下:- @echo off
- setlocal enabledelayedexpansion
- title Roll点器
- color 9f
- set set1="HKCU\Console\%%SystemRoot%%_system32_cmd.exe"
- reg add %set1% /v "WindowPosition" /t REG_DWORD /d 0x01000200 /f>nul
- reg add %set1% /v "FontSize" /t REG_DWORD /d 0x001b000c /f>nul
- set /p times=请输入次数(若不输入则默认为1)
- set /p max=请输入最大限度(若不输入则默认为100)
- if "%max%" == "" set max=100
- if "%times%" == "" set times=1
- for /l %%i in (1 1 %times%) do (
- set /a mod1=1+%random%%%%max%
- echo %mod1%
- )
- pause
- reg delete %set1% /f>nul
复制代码
|