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 loadrunner start-transaction and its syntax?

877


What is the basic credentials should be provided while recording SAP-GUI?

2942


While the script is running we find some values that may need to be correlated? Is it possible to do manual correlation for those values?

752


What are the different components of loadrunner?

794


What is the use lr_abort function?

957


What is the vuser in the scenario?

798


How many section database vuser script have?

798


What is parameterizion?

888


How are concurrent users differing from simultaneous users?

758


What is protocol function?

833


What is local configuration file?

779


What is running virtual user graph?

860


How will you divide your script into multiple actions? Why?

981


While scripting you created correlation rules for automatic correlation. If you want to share the correlation rules with your team member working on the same application so that he/she can use the same on his workstation, how will you do that?

898


How vugen create a vuser script?

805