Batch file execution at command prompt
I am executing a batch file in windows command prompt using "WSCript.shell" object. Before the execution of batch is over in command prompt the QTP control moves to the next line, due to that subsequent tests are failing.
Is there any way that till the execution of batch file is over can we make the control to wait, instead of QTP execution control goes to subsequent lines.
Batch file is created dynamically i can't predict the size of batch file at each execution.
Set oShell = CreateObject ("WSCript.shell")
retCode = oShell.run ("cmd /C " & batFileName)
Re: Batch file execution at command prompt
you can try
oShell.Run <your command>, 1,true
this would not go to next line until completes current task.