Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible to read batch file using groovy script in script runner?

haseena banu March 8, 2018

I need to run the batch file in script runner. 

def proc ="cmd /c C:\\Program Files\\Atlassian\\Application Data\\JIRA\\scripts\\version.bat". 

def command=proc.execute()

This is the command for executing batch file.

But iam getting error.

2018-03-09 07:05:01,996 WARN [common.UserScriptEndpoint]: Script console script failed: java.io.IOException: Cannot run program "cmd": error=2, No such file or directory

1 answer

0 votes
Pooja Goudappanour March 18, 2021

Same issue!, looking for a reply yet...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events