C#像运行一个exe 程序一样运行一个dll文件

        [DllImport("kernel32.dll")]
        public static extern int WinExec(string exeName, int operType);  
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            WinExec(@"D:projectLiuLunLiuLun.Browser.Demo5Apppdf.dll",1);
        }

这样做貌似还是有点问题的,以后再深入研究

原文地址:https://www.cnblogs.com/liulun/p/4392932.html