C# 页面调用控制台应用程序

时间:2017-07-07 19:10:15   收藏:0   阅读:916

 

var rootPath = System.Configuration.ConfigurationManager.AppSettings["rootPath"];
            Process.Start(@"D:\测试\AilonePrecept\Task\期刊\bin\Debug\期刊.exe",url);

 

 

class Program
    {
        static void Main(string[] args)
        {
             
            Console.WriteLine("asdfsdafsdaf");
            Console.WriteLine(string.Format("接收到了{0}个参数", args.Length));
            foreach (var item in args)
            {
                Console.WriteLine(item);
            }
            Console.ReadKey();
        }
    }

 

原文:http://www.cnblogs.com/xuanlanbinfen/p/7133557.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!