System.Diagnostics.Process.Start("C:\\winnt\\notepad.exe");

解决方案 »

  1.   

    using System.Diagnostics;
    -------------------------------Process proc = new Process(); proc.StartInfo.FileName = @"ping.exe"; proc.StartInfo.Arguments = "www.sina.com.cn"; 
    proc.StartInfo.UseShellExecute = false;
    proc.StartInfo.RedirectStandardOutput = true;
    proc.Start(); string output = proc.StandardOutput.ReadToEnd();MessageBox.Show(output);MessageBox.Show((proc.ExitCode).ToString());ms-help://MS.VSCC/MS.MSDNVS.2052/cpref/html/frlrfsystemdiagnosticsprocessclassstandardoutputtopic.htm
      

  2.   

    你们的意思是说把别的语言已经写好的应用程序拿来运行是吗?
    如果用JAVA写的东西没有.exe文件呢?只有类!那只能把它转成.exe文件?
    没有别的办法了?