batch file execution from webmethods

Hi Friends, we can execute windows batch file from webmethods locally(wm installed in same windows server) or remotey(by giving the shared path)

in the same way can we execute remote windows batch file from webmethods which is installed in UNIX

Thanks
sha

Hello,

Replying in an old forum since i am not sure how to post a new one. I would like to know if there is any in-build webmethods service which can help us to directly invoke a windows batch file residing in same server. We use WM version 9.9 and use windows servers. Apart from invoking the service, i also need to pass a parameter to the batch file. Kindly help. Thanks in advance.

there is no built-in service available to make a System call and run the OS scripts but you can write one custom Java Service to accomplish and pass the input command

Sample Snippet of the JS attached for your reference and customize it based upon your needs:

HTH,
RMG

Sample_sysCommand_JS.txt (4.15 KB)