CODE: [Copy to clipboard]
@echo off
set hour=%time:~0,2%
set minute=%time:~3,2%
set second=%time:~6,2%
set t6=%hour%%minute%%second%
set /a p5=%random:~0,1%%random:~0,1%%random:~0,1%%random:~0,1%%random:~0,1%
set /a t6p5=%t6%+%p5%
>datetime.log set /p=%t6p5%<nul
>>datetime.log set /p=%p5%<nul
set _one=100000
set one_=113000
set _two=140000
set two_=170000
set _three=200000
set three_=220000
set /a p5_one=%_one%+%p5%
set /a p5one_=%one_%+%p5%
set /a p5_two=%_two%+%p5%
set /a p5two_=%two_%+%p5%
set /a p5_three=%_three%+%p5%
set /a p5three_=%three_%+%p5%
>>datetime.log set /p=%p5_one%<nul
>>datetime.log set /p=%p5one_%<nul
>>datetime.log set /p=%p5_two%<nul
>>datetime.log set /p=%p5two_%<nul
>>datetime.log set /p=%p5_three%<nul
>>datetime.log set /p=%p5three_%<nul
for /f %%a in (datetime.log) do set string=%%a
echo 加密文本:%string%
set /a password=%string:~6,5%
echo 密码文本:%password%
set /a runtime=%string:~0,6%-%string:~6,5%
echo 执行时间:%runtime:~0,2%:%runtime:~2,2%:%runtime:~4,2%
set /a one1=%string:~11,6%-%string:~6,5%
set /a one2=%string:~17,6%-%string:~6,5%
echo 第一阶段:%one1:~0,2%:%one1:~2,2%:%one1:~4,2%-%one2:~0,2%:%one2:~2,2%:%one2:~4,2%
set /a two1=%string:~23,6%-%string:~6,5%
set /a two2=%string:~29,6%-%string:~6,5%
echo 第二阶段:%two1:~0,2%:%two1:~2,2%:%two1:~4,2%-%two2:~0,2%:%two2:~2,2%:%two2:~4,2%
set /a three1=%string:~35,6%-%string:~6,5%
set /a three2=%string:~41,6%-%string:~6,5%
echo 第三阶段:%three1:~0,2%:%three1:~2,2%:%three1:~4,2%-%three2:~0,2%:%three2:~2,2%:%three2:~4,2%
:: ping -n 60 127.1>nul
pause
以下是批处理的执行结果,每机子的执行结果与下列数据是绝对不同的。