what is the function to execute batch jobs?

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


Please Help Members By Posting Answers For Below Questions

What is the vuser in the scenario?

599


What are monitors?

597


When you initialize the vuser what happen?

643


What is remote command launcher?

620


What kind of problem can we face regarding hardware, software, network and memory bottleneck during the performance test?

653






What is pause command?

642


What are the section contain by the vugen while creating a vuser script?

592


What is the significance of “vuser-init “?

791


What do you mean by path?

630


How do you decide the number of load generator machine required to run a test?

726


What is host?

648


What are the challenges that you will face to script the step “select all” and then “delete” for any mail account?

932


How many types of graphs are available in loadrunner?

582


What are the information contain by script windows for each script in the list?

670


How do you load a load runner agent?

648