|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problems with exec function
Hello. I have a problem in my project. I want to execute a file from java (to be more exact java servlet). I've made the next function for that:
public boolean executaComanda(String comanda){ boolean status=true; Runtime r = Runtime.getRuntime(); Process p = null; try{ // p = r.exec("rundll32 SHELL32.DLL,ShellExec_RunDLL "+comanda); p = r.exec("cmd /c "+comanda); status=true; } catch (Exception e) { ... status=false; } return status; } The function works (in a way) but the problem is that the file is run like a process and the application's form does'n apear. How can I do to make the form visible and the file to run as an application? Thanks for any help. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Problems with exec function |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|