我有这个代码在我的桌面上完美运行,可以快速创建文件,但在我的笔记本电脑上,文件创建有很大的延迟。我的笔记本电脑上有什么东西导致这个问题吗CPU并不弱,因为它是带有16GB RAM的i7-8550u,所以可能导致这个问题?
代码:
@echo off
SETLOCAL EnableDelayedExpansion
goto :start
:attackers
set i=0
for %%a in (Vigil Ela Lesion Mira Echo Caviera Valkyrie Frost Mute
Smoke Castle Pulse Doc Rook Jager Bandit Tachanka Kapkan) do (
set /A i+=1
set operator[!i!]=%%a
)
set /a operator=%random%%%i+1
set operator=!operator[%operator%]!
copy /y NUL %operator% >NUL
exit /B
:start
for /l %%x in (1, 1, 5) do (
call :attackers
echo !operator!
)
pause