Diff of /trunk/cforge/cforge/Program.cs [r8] .. [r9]  Maximize  Restore

Switch to unified view

a/trunk/cforge/cforge/Program.cs b/trunk/cforge/cforge/Program.cs
...
...
26
                // now we can remove the start
26
                // now we can remove the start
27
                // split for the first ":" and the rest is like the normal commandline                
27
                // split for the first ":" and the rest is like the normal commandline                
28
                String arg = args[0].Remove(0, "cforge:".Length);
28
                String arg = args[0].Remove(0, "cforge:".Length);
29
                List<string> newargs = new List<string>();
29
                List<string> newargs = new List<string>();
30
30
31
                String command = arg.Split(':')[0];
31
                String command = "--" + arg.Split(':')[0];
32
                newargs.Add(command);
32
                newargs.Add(command);
33
                string s = System.Uri.UnescapeDataString(arg.Remove(0, command.Length + 1));
33
                string s = System.Uri.UnescapeDataString(arg.Remove(0, command.Length + 1));
34
                s = System.Uri.UnescapeDataString(s);
34
                s = System.Uri.UnescapeDataString(s);
35
                newargs.Add(s);
35
                newargs.Add(s);
36
36
...
...
38
            }
38
            }
39
            
39
            
40
40
41
            if (!Helper.CheckRegistryProtocol())
41
            if (!Helper.CheckRegistryProtocol())
42
            {
42
            {
43
                Console.WriteLine(@"[WARNING] URL Handler is not registered. CFORGE: links will not work properly. Use RegisterURLHandler.bat to do this (at <CODESYS Installation folder>\CFORGE\ )");
43
                Console.WriteLine(@"[WARNING] URL Handler is not registered. CFORGE: links will not work properly. Use Setup.bat to do this (at <CODESYS Installation folder>\CFORGE\ )");
44
            }
44
            }
45
45
46
            List<String> liScripts = Helper.GetAllScripts();
46
            List<String> liScripts = Helper.GetAllScripts();
47
            
47
            
48
            bool bDebug = false;
48
            bool bDebug = false;