Exemplo n.º 1
0
        /// <summary>
        /// AUCを実行
        /// </summary>
        object Auc(string command, string arg)
        {
            Type WshShell;

            WshShell = Type.GetTypeFromProgID("Wscript.Shell");
            Object obj = Activator.CreateInstance(WshShell);

            Object type = 2;
            Object wait = true;

            return(WshShell.InvokeMember(
                       "Run",
                       BindingFlags.InvokeMethod,
                       null,
                       obj,
                       new Object[] { Path.Combine(Settings.Default.AUCDir, "auc_" + command + ".exe ") + arg, type, wait }
                       ));
        }