[ leny @ 28.03.2008. 12:34 ] @
Kako je moguce da klikom na dugme otvorim neki fajl (isto kao sto bi se dvostrukim klikom otvorio taj fajl).?? |
[ leny @ 28.03.2008. 12:34 ] @
[ milan.dinic @ 28.03.2008. 13:06 ] @
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(); } Copyright (C) 2001-2025 by www.elitesecurity.org. All rights reserved.
|