摘要: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
阅读全文
随笔分类 - C&C++&C#&asp.net
编程实现
摘要: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
阅读全文
摘要:用C#实现获取文件夹大小的源代码 当然了都需要引入System.IO这个命名空间 第一个: public static long GetDirectoryLength(string dirPath) { //判断给定的路径是否存在,如果不存在则退出 if (!Directory.Exists(dirPath)) return 0; long len = 0; //定义一个DirectoryInfo...
阅读全文

浙公网安备 33010602011771号