摘要: 里面是参考网友的,使用比较顺手。 阅读全文
posted @ 2018-08-31 16:05 何波 阅读(5565) 评论(1) 推荐(0) 编辑
摘要: /// /// 在IIS子站点下面创建应用程序并且创建虚拟目录 /// /// 需要创建的应用程序名称 /// 路径 /// 站点siteId /// public static void CreateAppPool(string appPoolName, st... 阅读全文
posted @ 2018-08-31 15:58 何波 阅读(354) 评论(0) 推荐(0) 编辑
摘要: /// /// 还原数据库 /// /// 数据库名称 /// 还原的路径bak文件 /// 用户名 /// 密码 /// IP或者当前服务(.) public static void Restoredb(string dataBaseName, ... 阅读全文
posted @ 2018-08-31 15:51 何波 阅读(1599) 评论(0) 推荐(0) 编辑
摘要: /// /// 把一个文件夹下所有文件复制到另一个文件夹下 /// /// 当前文件夹 /// copy到新文件 public static void CopyDirectory(string srcPath, string destPath) { try... 阅读全文
posted @ 2018-08-31 15:48 何波 阅读(204) 评论(0) 推荐(0) 编辑