Created
August 29, 2009 01:17
-
-
Save alvin2ye/177350 to your computer and use it in GitHub Desktop.
C# 运行 exe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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