+++ /dev/null
-package test;
-
-import org.splat.launcher.FileTransfer;
-import org.splat.launcher.WindowsRegistry;
-
-
-public class Test {
-
-
-// ==============================================================================================================================
-// Main
-// ==============================================================================================================================
-
- public static void main(String[] args) {
-// --------------------------------------
-// String url = "http://localhost:8080/repository/2011/PLM110001/1.Study";
- String command = args[0];
-// String filename = args[1];
-
- String applikey = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Applications\\" + command;
- String key = "";
- String module = WindowsRegistry.readValue(applikey + "\\shell\\open\\command ", key);
- if (module == null) module = WindowsRegistry.readValue(applikey + "\\shell\\edit\\command ", key);
- try {
-// FileTransfer.Download(url, filename, path);
- String[] parse = module.split("/"); // Removing eventual options
-
- Runtime.getRuntime().exec(parse[0]);
-// Runtime.getRuntime().exec(parse[0] + " \"" + path + "\\" + filename + "\"");
- }
- catch (Exception error) {
- System.out.println("Unable to start " + module);
- }
- }
-}
\ No newline at end of file