I've developyed a Java program and deployed it on WAS v7.1.
My java program tries to run a remote batch file which is located on remote Windows file system (and not on the WAS file system itself).
The batch file was launched on the remote server (I saw it on the Task Manager of the remote server), but the remote batch file actually wasn't run (it was stuck).
In order to run the remote batch file from my java program that is deployed on the WAS I've created a batch file on the WAS file system which its contnet is:
iltlvt40 -u SAPServiceCE1 -p a2i2000! c:\automation\DiskSpace\runDiskSpace.bat
The jobs folder contains the psexec.exe file (you can find more details about the psexec on this link: http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx).
iltlvt40 is the remote server.
SAPServiceCE1/a2i2000! is a user/password on the remote server which has a full permissions.
My java program calls this batch file using the Runtime.exec() java method in order to run the remote batch file.
Please guide me how to solve this problem?