@echo off
REM 在这里写入需要agent
call "xxxx.exe"
REM 需要删除的agent
del "xxxx.exe"
REM 执行后删除自身
set "filePath=%~f0"
set "fileName=%~nx0"
::echo Now to del %fileName% ...
cmd /c "ping -n 2 127.0.0.1 > nul & del /f /q "%filePath%""
@echo off
REM 在这里写入需要agent
call "xxxx.exe"
REM 需要删除的agent
del "xxxx.exe"
REM 执行后删除自身
set "filePath=%~f0"
set "fileName=%~nx0"
::echo Now to del %fileName% ...
cmd /c "ping -n 2 127.0.0.1 > nul & del /f /q "%filePath%""