what is the function to execute batch jobs?



what is the function to execute batch jobs?..

Answer / 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

More Load Runner Interview Questions

You want to have each step in your script measured as a transaction in the controller and not shown in the replay log in vugen. How can you accomplish this?

0 Answers  


What are the Web Stress Tools are commonly used these days? Please advise.

1 Answers  


What is a scenario?

3 Answers   Accenture,


what is the differance between standard log and extended log?

5 Answers  


Hi, I am executing a scenario for 48 hours. My controller is on remote host, so I am using RDC. After some 24 hours my remote session got terminated as it is put idle for some time. When I tried to open the result file(As it is Auto Collated and saved in the results folder), it is giving error. Is there any way that I can see the results for which the remote session is terminated? Please help in resolving this.

1 Answers  






What is the loadrunner end transaction and its syntax?

0 Answers  


What is parameterization & why is parameterization necessary in the script?

0 Answers  


How can u use the configuration management tool like Quality Center in ur project?For what purpose it is being used?

1 Answers   EDS,


what are the parameters in Load Runner?

7 Answers   GE,


Need to know best institute where i can learn LR with live concepts... Please suggest if any one knows...

3 Answers  


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

0 Answers  


The response time of an application was 2.5 seconds.After a minor hotfix,the response time increased to 5 seconds.What analysis can you make out. What are all the things u check in the server side in such a scenario?

4 Answers   Symphony,


Categories