摘要: .虚拟目录不是应用程序时,里面的动态脚本不能执行,包括ASPX、ASP等等。转换成应用程序后,虚拟目录中的动态脚本便可以执行了,可以理解为一个小站点,不过这个小站点是嵌在主站点下面。 阅读全文
posted @ 2011-03-09 09:12 commas 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 笔记:ProcessStartInfo pi = new ProcessStartInfo(); pi.FileName = "c:\\windows\\system32\\inetsrv\\appcmd.exe"; pi.Arguments = string.Format("add app /site.name:test /path:/test2 /physicalpath:g:\\bbb"); pi.CreateNoWindow = false; Process.Start(pi); 阅读全文
posted @ 2011-03-09 08:57 commas 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1.引用using ICSharpCode.SharpZipLib;2.执行调用ICSharpCode.SharpZipLib.Zip.FastZip zip = new ICSharpCode.SharpZipLib.Zip.FastZip(); zip.ExtractZip(“g:\\test.rar“, "g:\\applications","");//将g:\\test.rar将文件解压到g:\\applications目录且建立以test 命名的文件夹组件下载(只供学习讨论):ICSharpCode.SharpZipLib.rar 阅读全文
posted @ 2011-03-09 08:55 commas 阅读(358) 评论(0) 推荐(0) 编辑