Kako je moguce da klikom na dugme otvorim neki fajl (isto kao sto bi se dvostrukim klikom otvorio taj fajl).??
Kako je moguce da klikom na dugme otvorim neki fajl ...
Zakačeno
za win xp:
try {
String path = "c:\\xampp\\readme_de.txt";
String[] commands = new String[] { "cmd.exe", "/c", path };
Process child = Runtime.getRuntime().exec(commands);
} catch (Exception e) {
e.printStackTrace();
}
try {
String path = "c:\\xampp\\readme_de.txt";
String[] commands = new String[] { "cmd.exe", "/c", path };
Process child = Runtime.getRuntime().exec(commands);
} catch (Exception e) {
e.printStackTrace();
}