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

When you initialize the vuser what happen?

657


What is the purpose of an extended log?

739


What are the different types goals in goal-oriented scenario?

576


What is vugen recording and scripting?

683


What is report viewer?

702






Can anyone please mention what are the common errors that we can see while replaying the Vugen script and also while running the controller scneraio and How to handle them with a few examples. This will be greatly helpful.

1659


How can you set the number of vusers in loadrunner?

586


Hi all, I am having an interview on LoadRunner (SAP Web Protocol). I am wondering if somebody can help me with some interview questions at a 2 yr Scriptor level. Thanks and all answers are much appreciated.

6289


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

945


What is the benefit of running a vuser script as a thread?

573


What is gui vuser and on which platform it will run?

593


How do you enable text and image checks in vugen?

608


What is remote command launcher?

637


What should be done to view parameter substitution in the execution log?

614


How does loadrunner execute a performance scenario?

641