tags:

views:

38

answers:

0

Hello, i am trying to run a batch file in remote. I have the following psexec command in my local machine :C:\PsTools\PsExec.exe \ -u -p -i -d cmd /c start "C:\config.bat"

This bat file has the java command, which would start the process java.exe

The psexec command says, "cmd started on process id ". But, in remote machine cmd.exe is opened but the java command in the batch file is not executed. i tried sc in psexec command as well. permissions are given for the directory. Nothing worked. I tried to execute some other executable, that works for the same above syntax. It is not working only for java command. How to do this?