The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Pooja Goudappanour
March 18, 2021

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

TAGS
AUG Leaders

Atlassian Community Events