Пример #1
0
        static void Main(string[] args)
        {
            if (args.Length > 2 && (args[2].ToLower() == "-b"))
            {
                IntPtr handle = GetConsoleWindow();
                ShowWindow(handle, SW_HIDE);
            }

            MyCode.StartHere(args);
        }
Пример #2
0
        public override void Uninstall(System.Collections.IDictionary savedState)
        {
            System.IO.StreamReader file = new System.IO.StreamReader("prog_args.txt");
            string line;

            string [] args    = new string[15];
            int       counter = 0;

            while ((line = file.ReadLine()) != null)
            {
                args[counter] = line;
                counter++;
            }

            MyCode.StartHere(args);
        }