2 import org.splat.launcher.FileTransfer;
3 import org.splat.launcher.WindowsRegistry;
9 // ==============================================================================================================================
11 // ==============================================================================================================================
13 public static void main(String[] args) {
14 // --------------------------------------
15 // String url = "http://localhost:8080/repository/2011/PLM110001/1.Study";
16 String command = args[0];
17 // String filename = args[1];
19 String applikey = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Applications\\" + command;
21 String module = WindowsRegistry.readValue(applikey + "\\shell\\open\\command ", key);
22 if (module == null) module = WindowsRegistry.readValue(applikey + "\\shell\\edit\\command ", key);
24 // FileTransfer.Download(url, filename, path);
25 String[] parse = module.split("/"); // Removing eventual options
27 Runtime.getRuntime().exec(parse[0]);
28 // Runtime.getRuntime().exec(parse[0] + " \"" + path + "\\" + filename + "\"");
30 catch (Exception error) {
31 System.out.println("Unable to start " + module);