We are interested in launching windows application (say telnet) from our java program. There are 2 approved ways to do this:
1) Runtime.getRuntime().exec
("rundll32 SHELL32.DLL,ShellExec_RunDLL C:\\WINDOWS\\system32\\telnet.exe");
or
2) Runtime.getRuntime().exec("cmd.exe /c start C:\\WINDOWS\\system32\\telnet.exe");
1) Runtime.getRuntime().exec
("rundll32 SHELL32.DLL,ShellExec_RunDLL C:\\WINDOWS\\system32\\telnet.exe");
or
2) Runtime.getRuntime().exec("cmd.exe /c start C:\\WINDOWS\\system32\\telnet.exe");
No comments:
Post a Comment