科技以致用

情感 信念 勇气

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

随笔分类 -  C&C++&C#&asp.net

编程实现
摘要:IE编程——读取IE窗口信息目标: 程序自动读取所有正在运行的IE(6.0或7.0)窗口信息,如窗口句柄HWND、状态文本StatusText、名字Name、路径Path等。实现: 1. 添加对COM组件Microsoft Internet Controls的引用,如下图。 2. 获得IE窗口信息。-收缩C#代码usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Window 阅读全文
posted @ 2013-04-14 10:18 萝卜皮 阅读(2799) 评论(0) 推荐(0)

摘要:System.AppDomain objAPDom = System.AppDomain.CurrentDomain;object obj = objAPDom.GetData("APP_LAUNCH_URL");“name”的值属性"APPBASE"ApplicationBase "APP_CONFIG_FILE"ConfigurationFile "DYNAMIC_BASE"DynamicBase "DEV_PATH"(无属性)"APP_NAME"ApplicationN 阅读全文
posted @ 2013-04-14 10:14 萝卜皮 阅读(3248) 评论(0) 推荐(0)

摘要:用C#实现获取文件夹大小的源代码 当然了都需要引入System.IO这个命名空间 第一个: public static long GetDirectoryLength(string dirPath) { //判断给定的路径是否存在,如果不存在则退出 if (!Directory.Exists(dirPath)) return 0; long len = 0; //定义一个DirectoryInfo... 阅读全文
posted @ 2008-06-23 19:23 萝卜皮 阅读(8724) 评论(1) 推荐(0)