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

How do we write a user-defined function in loadrunner?

1 Answers  


How to handle the dynamic value in the script if the boundary and dynamic value both are changing as a... 1.special char. 2.Hex code or binary code

1 Answers  


When do you disable log in Virtual User Generator?

1 Answers  


Explain the difference between automatic correlation and manual correlation?

0 Answers  


I am facing the active Screen Problem in loadrunner.While runnning the script active screen pop up is dispalying, always asking for username and password.This popup having OK,Cancel and HELP buttons.After clicking any OK or CANCEL button , then only it is moving to next step.What can i do? Please give any suggestion...

1 Answers  






We use pacing to have interval between two iteration of script. Why?

3 Answers   Orange,


What is the purpose of selecting ‘show browser’ during replay in the general options settings?

0 Answers  


What is a difference between pacing and think time?

0 Answers  


You are Performace Engineer and it is bottleneck how will identify it is Database Issue? Any one can justify? send to sss4702@gmail.com

0 Answers  


What is planning for the test?

0 Answers  


types of servers?Explin me plz(chandana)

3 Answers   IBM,


Correlation function web_reg_save_param(pname,LB,RB,ORD,LAST); with in the function ORD default value how much? can any one send sss4702@gmail.com it is Amdocs company asked?

3 Answers   Amdocs,


Categories