摘要: 很多种情况都是IIS启动时会提醒:“服务没有及时响应启动或控制请求”。大家到“删除/添加程序”里“显示更新”的查看xp的补丁删除KB2290570KB939373KB942831kb2124261这几个补丁就可以了 阅读全文
posted @ 2010-09-23 20:50 春哥也编程 阅读(270) 评论(0) 推荐(0)
摘要: IIS 6.0Configuring the IIS server results in properties being set at appropriate locations (or keys) in the metabase according to the rules in the schema. Most of these properties can be set using IIS... 阅读全文
posted @ 2010-09-23 20:27 春哥也编程 阅读(400) 评论(0) 推荐(0)
摘要: DirectoryEntry是.Net给我们的一大礼物,他的名字我们就知道他的功能--目录入口。使用过ADSI的人都知道操作IIS,WinNT这些时,我们还需要提供他们的Path,操作IIS时,这个Path的格式为:IIS://ComputerName/Service/Website/DirectoryComputerName:即操作的服务器的名字,可以是名字也可以是IP,经常用的就是localh... 阅读全文
posted @ 2010-09-23 20:25 春哥也编程 阅读(1495) 评论(0) 推荐(0)
摘要: using System; using System.DirectoryServices; using System.Collections; namespace IISManagement{ /// <summary> /// IISManager 的摘要说明。 /// </summary> public class IISManager { //定义需要使用的 priv... 阅读全文
posted @ 2010-09-23 20:24 春哥也编程 阅读(1054) 评论(1) 推荐(0)
摘要: class Program{ static void Main(string[] args) { string str = RunCmd("dir c:"); Console.WriteLine(str); } static string RunCmd(string command) { //实例一个Process类,启动一个独立进程 Process p = new Process(); //P... 阅读全文
posted @ 2010-09-23 14:57 春哥也编程 阅读(3961) 评论(0) 推荐(1)
摘要: CMD常用命令 7:计算机运行命令全集 winver---------检查Windows版本 wmimgmt.msc----打开windows管理体系结构 wupdmgr--------windows更新程序 winver---------检 查Windows版本 wmimgmt.msc----打开windows管理体系结构 wupdmgr--------windows更新程序 wscript--... 阅读全文
posted @ 2010-09-23 14:56 春哥也编程 阅读(24739) 评论(0) 推荐(1)
摘要: 首先要引入命名空间:using System.IO;在写读取方法:DirectoryInfo dir = new DirectoryInfo(path); //path为某个目录,如: “D:\Program Files”FileInfo[] inf = dir.GetFiles();foreach (FileInfo finf in inf){if( finf.Exten... 阅读全文
posted @ 2010-09-23 14:55 春哥也编程 阅读(4532) 评论(0) 推荐(0)
摘要: private void timeDelay(int iInterval) { DateTime now = DateTime.Now; while (now.AddMilliseconds(iInterval) > DateTime.Now) { } return; } 阅读全文
posted @ 2010-09-23 14:54 春哥也编程 阅读(1453) 评论(0) 推荐(0)