Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 21061

Running Windows Batch Files in Test Complete(VBscript)

$
0
0

I am trying to execute bat file through code instead of using "TESTED APPS" as below..

 

--------------

sAutoAppPath = "E:\AutomationDir\Applications\InDMSApp_QA\bin\start_dms.bat"

Call Sys.OleObject("WScript.Shell").Run(sAutoAppPath )

and

Call Win32API.WinExec(sAutoAppPath, SW_SHOW)

--------------------------------------------------------------

WHile executing the above code i am finding error "System cannot find the file specified"

 

Can anyone please suggest the solution to execute the Bat file through the code?

 

Thanks in Advance.. Smiley Happy

Kavan.. 


Viewing all articles
Browse latest Browse all 21061

Trending Articles