smadden
9 years agoNew Contributor
Run a batch file from Groovy Script
I have a batch file that sorts a pipe delimited file. I put the batch file at the project level directory. I then put the following in a Groovy Script:
Runtime.runtime.exec("test1.bat")
I receive the following error: java.io.IOException: Cannot run program "test1.bat": CreateProcess error=2, The system cannot find the file specified error at line: 1
Something else I need to do to get it to find the file that is ACTUALLY there?