cancel
Showing results for 
Search instead for 
Did you mean: 

Running exe file

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

kishorg
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

Dear Kishor Gopinathan ,

i want to run exe file that will move the mouse cursor.

so i need to run the exe on the client side.

where should i put the exe file ? on which path on the server ?

thanks,

Ofer.

kishorg
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

hi

my app is with out any ui.

i need that exe file will run automaticly without any popups or downloads.

can i do that?

kishorg
Advisor
Advisor
0 Kudos

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