• Uncategorized

About java : Execute-bat-file-on-a-remote-windows-server-Java-App-installed-on-linux-machine

Question Detail

I have a Java web application installed on a Linux machine.

My objective is to programmatically (integrated in my Java app), execute a .bat file located on a remote Windows Server machine (with credential).

If the remote machine would have been a Linux machine, I would have used the jsch library, but the difficulty is that the remote machine is Windows.

Question Answer

SSH on windows is an option… if this can be used in your case I would consider it.

I’ve done this before and had a script execute based on a job from the Linux box which would SSH to the windows server, then execute the script there.

See more here-

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.