Results 1 to 8 of 8
- 11-25-2013, 11:23 AM #1
Member
- Join Date
- Nov 2013
- Posts
- 3
- Rep Power
- 0
- 11-25-2013, 11:27 AM #2
Just a guy
- Join Date
- Jun 2013
- Location
- Netherlands
- Posts
- 5,114
- Rep Power
- 13
Re: How to run .exe in a remote machine,from my java code
Run how. Is it a graphical tool which you want to start up remotely FROM another machine? Should the application stay running when you start it remotely? Is it a command line utility which you want to run and get the output from?
Note that this is a highly operating system specific thing to do and Java does not do operating system specific things. Likely this is going to be a lot more work than calling some method on some class."Syntactic sugar causes cancer of the semicolon." -- Alan Perlis
- 11-25-2013, 02:14 PM #3
Re: How to run .exe in a remote machine,from my java code
One way: Write a server program that can execute the exe program. Connect to that server and send it a message telling it to execute the exe file.
If you don't understand my response, don't ignore it, ask a question.
- 11-26-2013, 12:06 PM #4
Member
- Join Date
- Nov 2013
- Posts
- 3
- Rep Power
- 0
- 11-26-2013, 12:11 PM #5
Just a guy
- Join Date
- Jun 2013
- Location
- Netherlands
- Posts
- 5,114
- Rep Power
- 13
Re: How to run .exe in a remote machine,from my java code
"Syntactic sugar causes cancer of the semicolon." -- Alan Perlis
- 02-11-2014, 08:38 AM #6
Member
- Join Date
- Feb 2014
- Posts
- 1
- Rep Power
- 0
Re: How to run .exe in a remote machine,from my java code
Hi,
Can anyone refer me something to read for calling c exec from java code.
- 02-11-2014, 10:05 AM #7
Just a guy
- Join Date
- Jun 2013
- Location
- Netherlands
- Posts
- 5,114
- Rep Power
- 13
Re: How to run .exe in a remote machine,from my java code
Google can.
"Syntactic sugar causes cancer of the semicolon." -- Alan Perlis
- 02-13-2014, 02:43 PM #8
Senior Member
- Join Date
- Feb 2014
- Posts
- 447
- Rep Power
- 8
Re: How to run .exe in a remote machine,from my java code
The information you gave so far is far from complete.
In case you
- do not want to install anything on the target systems
- you have administrative rights on the target systems
you could start a tool like psexec locally to execute stuff on the target systems.
But please be aware that this is not a Java solution but a windows solution.
With kind regards,
Konrad
Similar Threads
-
Who to access other remote machine folder from java program which is in another remot
By pallavi_bhattacharjee in forum Advanced JavaReplies: 6Last Post: 05-28-2012, 02:50 PM -
how to place a file in remote machine using simple java class
By aradhya in forum Advanced JavaReplies: 10Last Post: 02-28-2012, 09:44 PM -
Java program to ping remote machine using IP address..?
By prabhurangan in forum New To JavaReplies: 19Last Post: 11-22-2011, 04:58 PM -
Connect to remote Windows machine using JAVA on Linux
By sumukh_death in forum NetworkingReplies: 6Last Post: 09-23-2011, 07:23 PM -
connect to remote machine
By RaSdab in forum New To JavaReplies: 1Last Post: 04-23-2011, 02:30 PM
Bookmarks