Hi Ganesh, Thanks for your response but running it through SystemUtil.Run causes the batch file to close immediately, it doesn't wait for it to finish and executes the next statement.
Regards Meghraj Singh On Monday, May 4, 2015 at 5:25:59 PM UTC+5:30, Ganesh muralidharan wrote: > > http://stackoverflow.com/questions/12729761/how-to-run-an-ftp-batch-file-from-qtp > > SystemUtil.Run "c:\abc\def\doFTP.bat" > > or if you have parameters to send to your bat file , then > > SystemUtil.Run "c:\abc\def\doFTP.bat" , file1 &" "& file2 > > > On Mon, May 4, 2015 at 11:23 AM, Meghraj Singh <[email protected] > <javascript:>> wrote: > >> Hi Mates, >> I am calling a batch file within the vbscript which I am running on UFT >> but on execution I am getting "General Run Error" and the error code >> associated with it is "-2147024894". >> >> Here are my code blocks: >> >> Set WshShell = CreateObject("WScript.Shell") >> Return = WshShell.Run("C:\Users\singh73\Desktop\New >> PCSIs\create_folder_move.bat",,True) >> msgbox Err.Number >> >> Can anyone please help me because I am stuck on my project because of >> this single utility. >> >> Regards >> Meghraj Singh >> >> -- >> -- >> You received this message because you are subscribed to the Google >> "QTP - HP Quick Test Professional - Automated Software Testing" >> group. >> To post to this group, send email to [email protected] >> <javascript:> >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/MercuryQTP?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "QTP - HP Quick Test Professional - Automated Software Testing" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Regards, > > > Ganesh Muralidharan > 'God Never Forgets' > -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
