set PRO_DIR=%~dp0
set loop=1
set rampup=0
set durTime=60
::For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
::For /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b)
for /f "delims=" %%a in ('wmic os get localdatetime /value') do set "%%a"
set time=%localdatetime:~0,14%
cd "D:\apache-jmeter-5.1.1-ant-all plugins\apache-jmeter-5.1.1\bin"
for /l %%i in (10,10,10) do (
jmeter.bat -n -t %PRO_DIR%share.jmx -l %PRO_DIR%%time%_durTime#%durTime%_rampup#%rampup%_loop#%loop%_threadNum#%%i.jtl -JthreadNum=%%i -Jrampup=%rampup% -JdurTime=%durTime% -Jloop=%loop%)
pause