Opening file from a remote computer
Good Day!
Please help me with my problem.
I wanted to open a file from a remote computer. I have this code but, it seems it cannot do the job.
Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL \""
+ file + "\"");
Thanks. Any help is much appreciated.
Regards
If I run my progam from localhost , I can open the file located at my localHost, but if I access my program from another computer, I cannot open the desired file located to the computer im currently using.
Typically, if my progam runs properly, it will just open the file.
Please help.
Regards
I made some code adjustments, finally the file opened, but there is one simple problem, the file opens in the server.. I wanted the file to open on the remote computer..
what am I missing here?
Regards
That's what it will do. You'll either have to figure out a way to send that command to the remote computer and have it executed there, or find another Windows command that will do that for you.
Whatever happened to NET RUN? or am I dreaming? last looked at that in about 1994.
ejpa at 2007-7-28 16:55:02 >
