Skip to content

Instantly share code, notes, and snippets.

@alvin2ye
Created August 29, 2009 01:17
Show Gist options
  • Save alvin2ye/177350 to your computer and use it in GitHub Desktop.
Save alvin2ye/177350 to your computer and use it in GitHub Desktop.
C# 运行 exe
using System;
using System.Diagnostics;
namespace csharp_station.howto
{
/// <summary>
/// Demonstrates how to start another program from C#
/// </summary>
class ProcessStart
{
static void Main(string[] args)
{
Process notePad = new Process();
notePad.StartInfo.FileName = "notepad.exe";
notePad.StartInfo.Arguments = "ProcessStart.cs";
notePad.Start();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment