Forum Discussion

torus's avatar
torus
Contributor
2 months ago
Solved

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
    2 months ago

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

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