Answer Posted / sksy
Use this piece of code
Action()
{
char command[1024]; // declare a cahar val
sprintf(command, "C:\testshilpa\batfile.bat");// mention the path of the file with full path details
system(command); // it will execute the command
return 0;
}
Note: batfile may contains command for batch job.You can try with "ping localhost -n 10"
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is script list?
What is lr_output_message?
What kind of problem can we face regarding hardware, software, network and memory bottleneck during the performance test?
How many types of vuser are available?
What protocols does loadrunner support?
How can performance bottlenecks be identified?
What is the loadrunner start-transaction and its syntax?
Does caching have a negative effect on your load testing results?
What are all the types of goals in goal-oriented scenario of load runner?
What is vuser-end section?
What is remote command launcher?
What is scenario default?
Which function is used to end a nested transaction?
How to create a host list for a scenario?
What do you mean by remote command launcher(rcl)?