tomptomp
9 years agoOccasional Contributor
running exe or bat file in groovy
Hi. i'm trying like crazy to run an .exe or a batch file via groovy in soapui.
I've tried:
def command = "cmd.exe /c h:\\BatchFile\\DownloadLogFile.bat"
proc = command.execute()
proc.waitForOrKill(5000)
def torun = "C:\\Windows\\System32\\cmd.exe"
proc = torun.execute()
proc.waitForOrKill(5000)
def torun = "h:\\BatchFile\\DownloadLogFile.bat"
proc = torun.execute()
proc.waitForOrKill(5000)
No errors generate from groovy in soapui but no results either
Thanks
Please refer to this KB: