on 03-07-2006 7:35 AM
Hello,
Is there any way that i can run exe file from wd application ?
I will appreciate any answer or hint.
thanks in advance,
Ofer.
Hi,
U can run only exes that are in server. Runtime interface in java can be used to run bat files or win32 application.
Process p = Runtime.getRuntime().exec("notepad");
Regards,
Piyush.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ofer,
it is possible to run exe files from java programs..
but for deployed applications , from where u need to run this exe ...
in server or in local machine ,from where u r accessing the webdynpro application...
use this to execute exe from java code...
<b>Runtime runtime = Runtime.getRuntime() ;
Process process = runtime.exec(<EXE name with path>);</b>
but this will depend upon from where u r running the application.. try to use server relative paths also...
Regards
Kishor Gopinathan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ofer ,
i think , u have to manually run the application in the client side after downloading from the server itself..
u have to kept it in server , and allow the client application to download it to client side and then execute..
otherwise , u have to programaically do these steps ,, copying the exe from server to a tem location in client and execute this in client side...
we can access files which are residing in server in one mor way .. thats with WebDav ... u have to set up this in the Enterprise portal if u have ..
if u have a IIS server in the same server machine or another machine , u can put these there and using WebDav u can access...
refer this for setting webdav in Windows..
http://acs.ucsd.edu/info/webdav.php
Regards
Kishor Gopinathan
Hi Ofer ,
i think , using the java.net.URL class it is possible..
here with this we can point to particular file from the server .. then get its contents..
if we can collect the contents of this , we can write the content as file in the client machine..
then execute this file from the client side itself...
just try in this way...
Help for URL Class
http://java.sun.com/j2se/1.4.2/docs/api/java/net/URL.html
good luck
Regards
Kishor Gopinathan
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.