cancel
Showing results for 
Search instead for 
Did you mean: 

Executing remote batch file

Former Member
0 Kudos

Hi!

I am trying to execute a remote batch file using Runtime class in java. I could execute my own batch file.

But i could not execute any server batch files like tomcat,sapnetweaver. Are there any security features. Suggest me any other classes to execute batch files.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Let me first clarify the problem,

You have a batch file on a remote machine

You want to execute that batch file on that remote machine

If this is true then make sure you have the admin rights on the remote machine. Java inturn uses the native methods of remote machine's operating system such as Win32Process. If you dont have enough rights on the target machine it will fail do give the details of the errors which you get.

Regards,

Sesh