
BAT批處理為何報錯echo處于關閉狀態代碼如下:
nclick="copycode($('code0'));">復制代碼
- @echo off
- setlocal enabledelayedexpansion
- title Roll點器
- color 9f
- set set1=HKCUConsole%%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

