第一個程序:
using System.ComponentModel;
using System.IO;
Process.Start(target,"你好");
}
第二個程序,在Program.cs文件中。
using System;
using System.Linq;
using System.Collections.Generic;
using System.Windows.Forms;
namespace TCPDownAndCOM
{
static class Program
{
///
/// The main entry point for the application.
///
[MTAThread]
static void Main(string[] args)
{
GPS_zw.ClassPublicFunction.strPar = args[0];
Application.Run(new Form1());
}
//static void Main()
//{
// //strPar = args[0];
// Application.Run(new Form1());
//}
}
}