i have windows xp and developing some java swing application.
In my program i am using
Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL "+ myfile);
to open the file produced from my program in windows default editor.
It works fine on my system. I just want to know would it work OK on windows 7.
Are there any security aspects to this process execution in windows 7 which does not show up in windows XP?
Not a direct answer, but you're supposed to use Desktop#open()
for this to be platform independent.
Desktop.getDesktop().open(file);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With