OS process sampler in jmeter

We can type a command in this sampler like ipconfig.Then we run our test we can go to result tree and in response data we see the reponse of ipconfig command i.e the ip and mac address of our pc etc.

We can do one more thing with Os process Sampler. Go to desktop.Make a text file and type echo "hello world" and save it in C drive somewhere as "osp.bat"

Then in Os Process Sampler and in command type cmd and then in working directory type the locationin C drive where we saved out file and then press enter and then click add and then in next line type osp.bat

So when we run this sampler it will run the commands in osp.bat file and we can check results in result tree.