Forum Discussion

torus's avatar
torus
Contributor
6 months ago

How to run a batch (*.bat) file from TestComplete (Javascript)

It took me longer than I had hoped to figure this out so wanted to put the answer here in case this benefits anyone else. 
  • torus's avatar
    6 months ago

    function runBatchFile()
    {
       WshShell.Run("C:\\Temp\\hello.bat")
    }

    Others posted some really good alternative answers as well ...