2010年6月23日

Asp.net 写文件

摘要: string fr = System.DateTime.Now.ToString ("yyyyMMddHHmmss");string fileName = "Test-"+ fr +".txt";string path = System.Configuration.ConfigurationSettings.AppSettings["Files"]; // 文件存放目录string pathfro... 阅读全文

posted @ 2010-06-23 10:10 AndyCai 阅读(168) 评论(0) 推荐(0) 编辑

ASP.Net 执行bat

摘要: // Get the full file pathstring strFilePath = batPath; //得到bat 文件全路径名// Create the ProcessInfo objectSystem.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo("cmd.exe"); //启动c... 阅读全文

posted @ 2010-06-23 10:07 AndyCai 阅读(1322) 评论(0) 推荐(0) 编辑

asp.net中执行exe应用程序

摘要: 原文:http://www.cnblogs.com/sonicit/archive/2008/04/19/1161256.html在asp.net中执行应用程序有两种方法:1、调用win32函数ShellExecute。2、用.NET Framework中的Process类。下面我分别用这两种方法执行Windows中的记事本程序notepad.exe。新建一个ASP.Net页面Default.as... 阅读全文

posted @ 2010-06-23 10:02 AndyCai 阅读(475) 评论(0) 推荐(0) 编辑

导航