0

我目前在 VS.NET 中编写程序,并且我想让我的程序在打开程序时激活/运行一个文件,我已经有程序处理来自外部程序(寻呼机解码器)的命令行参数,但是想程序在打开时自动打开和运行文件/文件。

有没有人知道如何做到这一点可以帮助我?


我到目前为止的代码:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(String[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1(args));
        }
    }
}
4

0 回答 0