我要用程序备份oracle数据库的的某个表放在c盘下
下面是我写的按钮事件            System.Diagnostics.Process p = new System.Diagnostics.Process();
            p.StartInfo.FileName = "cmd.exe ";            p.StartInfo.UseShellExecute = false;
            p.StartInfo.RedirectStandardInput = true;
            p.StartInfo.RedirectStandardOutput = true;
            p.StartInfo.CreateNoWindow = true;
            p.Start();
            p.StandardInput.WriteLine(@"cd\");
            p.StandardInput.WriteLine(@"c:");
            string sNow = DateTime.Now.ToLongDateString();
            string saveFileName = "日志备份文件" + sNow;
            p.StandardInput.WriteLine(@"exp toauser/toauser file=c:\" + saveFileName + " tables=s_log");
            //p.StandardInput.WriteLine(@"regedit");
            p.StandardInput.WriteLine("exit");// 向cmd.exe输入command            MessageBox.Show(p.StandardOutput.ReadToEnd());
            p.Close();以上代码放在一个新建的form里好使,
但是放在我做的OA中就不执行,请高手指点!