日期:2014-05-18 浏览次数:20433 次
ProcessStartInfo p = new ProcessStartInfo(); p.FileName = @"c:\oracle\ora92\bin\sqlldr.exe"; p.Arguments = @"control=C:\Oracle\data.ctl DATA=C:\Oracle\\data.dat userid=用户ID@数据库/密码"; p.UseShellExecute = false; p.RedirectStandardOutput = true; p.WindowStyle = ProcessWindowStyle.Hidden; p.CreateNoWindow = true; Process pro = Process.Start( p ); pro.WaitForExit(); string output = pro.StandardOutput.ReadToEnd(); System.Diagnostics.Debug.Write( output );