[CODE]            //声明一个进程实例
            Process p = new Process();
            //开启DOS命令
            p.StartInfo.FileName = "cmd.exe";
            //不用系统shell方式开启
            p.StartInfo.UseShellExecute = false;
            //开启输入
            p.StartInfo.RedirectStandardInput = true;
            //开启输出
            p.StartInfo.RedirectStandardOutput = true;
            //开启错误输出
            p.StartInfo.RedirectStandardError = true;
            //不显示窗口
            p.StartInfo.CreateNoWindow = true  ;
            //GO
            p.Start();
            //输入命令
            p.StandardInput.WriteLine(@"regsvr32 C:\WINDOWS\system32\wmp.dll /s");
            //关闭进程
            p.Close();
            MessageBox.Show("Register OK!");[/CODE]