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 report viewer?
What is the loadrunner start-transaction and its syntax?
What should be done to view parameter substitution in the execution log?
What is parameterizion?
What do you mean by remote command launcher(rcl)?
How are concurrent users differing from simultaneous users?
What are the information contain by script windows for each script in the list?
Which protocols are supported by loadrunner?
How you load a loadrunner agent?
What is the loadrunner end transaction and its syntax?
What are monitors?
How can we recording vuser scripts using vugen?
What is the purpose of an extended log?
What are different types of vuser logs which can be used while scripting and execution?
What is protocol function?