Do you have biterscripting (
http://www.biterscripting.com ) installed on the remote computer ? If it is, you can use this approach. (If not, you can always download free.)
Anytime you want to execute a batch file on the remote system, create a batch file on that remote system at, say, C:/Testing/file.bat. (This can be done using shared folders. ). Then write the following bite script on that remote system.
Copy and paste the above script into a script file C:/Scripts/RemoteExec.txt, then invoke the script by scheduling the following command in task scheduler.
The above command can be called directly from a Java program if needed.