How to run batch file(.bat) from Jmeter -
i'm new work jmeter , want run batch file ,i have tried run batch file bsf sampler using command
exec("c:\windows\system32\wscript.exe../stopwas.bat")
and displayed error message
"there no script engine file extension .bat"
also have tried run batch file os process sampler , wrote command :
command :cmd stopwas.bat
also failed can me issue?
for os process sampler guess need provide command parameter /c
or /k
.
so:
- command:
cmd
- command parameters:
/c
c:\somefolder\someotherfolder\stopwas.bat
mention have use full path .bat file.
another option executing via beanshell sampler
runtime.getruntime().exec("c:/windows/system32/cmd.exe /c c:/somefolder/someotherfolder/stopwas.bat");
Comments
Post a Comment