我的位置:首页 >> 油烟净化机

如何使用ShellApplication技术0测氧仪

发布时间:2022-07-21 06:16:59 来源:建峰五金网

如何使用Shell.Application技术

如何使用Shell.Application技术 2011年12月10日 来源: 1、创建 Shell 对象var Shell = new ActiveXObject("Shell.Application");2、使用 Shell 属性及方法Shell.ApplicationShell.ParentShell.CascadeWindows()Shell.TileHorizontally()Shell.TileVertically()Shell.ControlPanelItem(sDir) /* 比如:sysdm.cpl */Shell.EjectPC()Shell.Explore(vDir)Shell.Open(vDir)Shell.FileRun()Shell.FindComputer()Shell.FindFiles()Shell.Help()Shell.MinimizeAll()Shell.UndoMinimizeALL()Shell.RefreshMenu()Shell.SetTime()Shell.TrayProperties()Shell.ShutdownWindows()Shell.Suspend()oWindows = Shell.Windows() /* 返回ShellWindows对象 */fFolder = Shell.NameSpace(vDir) /* 返回所打开的vDir的Folder对象 */oFolder = Shell.BrowseForFolder(Hwnd, sTitle, iOptions [, vRootFolder]) /* 选择文件夹对话框 *//*示例:function BrowseFolder(){var Message = "清选择文件夹";var Shell= new ActiveXObject( "Shell.Application" );var Folder = Shell.BrowseForFolder(0,Message,0x0040,0x11);if(Folder != null){Folder = Folder.items(); // 返回 FolderItems 对象Folder = Folder.item();// 返回 Folderitem 对象Folder = Folder.Path;// 返回路径if(Folder.charAt(varFolder.length-1) != "\\"){Folder = varFolder + "\\";}return Folder;}}*//*示例:var Folder = Shell.NameSpace("C:\\");// 返回 Folder对象*/ 3、使用 Folder 对象[ oApplication = ] Folder.Application // Contains the Application object.[ oParentFolder= ] Folder.ParentFolder // Contains the parent Folder object.[oTitle= ] Folder.Title// Contains the title of the folder.Folder.CopyHere(vItem [, vOptions]) // Copies an item or items to a folder.Folder.MoveHere(vItem [, vOptions]) // Moves an item or items to this folder./*vItem:Required. Specifies the item or items to move. This can be a string that represents a file name, a FolderItem object, or a FolderItems object. vOptions Optional. Specifies options for the move operation. This value can be zero or a combination of the following values. These values are based upon flags defined for use with the fFlags member of the C++ SHFILEOPSTRUCT structure. These flags are not defined as such for Microsoft? Visual Basic?, Visual Basic Scripting Edition (VBScript), or Microsoft JScript?, so you must define them yourself or use their numeric equivalents.4Do not display a progress dialog box.8Give the file being operated on a new name in a move, copy, or rename operation if a file with the target name already exists.16Respond with "Yes to All" for any dialog box that is displayed.64Preserve undo information, if possible. 128 Perform the operation on files only if a wildcard file name (*.*) is specified.256Display a progress dialog box but do not show the file names.512Do not confirm the creation of a new directory if the operation requires one to be created.1024 Do not display a user interface if an error occurs.2048Version 4.71. Do not copy the security attributes of the file. 4096Only operate in the local directory. Don't operate recursively into subdirectories. 9182 Version 5.0. Do not move connected files as a group. Only move the specified files.*/Folder.NewFolder(bName) // Creates a new folder.ppid = Folder.ParseName(bName)// Creates and returns a FolderItem object that represents a specified item./*bName:Required. A string that specifies the name of the item. */oFolderItems = Folder.Items()// Retrieves a FolderItems object that represents the collection of items in the folder.sDetail = Folder.GetDetailsOf(vItem, iColumn)// Retrieves details about an item in a folder. For example, its size, type, or the time of its last modification./*vItem:Required. Specifies the item for which to retrieve the information. This must be a FolderItem object. iColumn: Required. An Integer value that specifies the information to be retrieved. The

广东省中医院预约挂号

广州南方医院

杭州胎记

安徽省计划生育学校

癌细胞检查

相关阅读
最好28日合肥市场无缝管价格行情地秤邯郸铝丝焊线机宿迁榨油机械Trp

28日合肥市场无缝管价格行情您世界首台一冲床体式智能自行车采用了超轻碳纤维复合材料当前位置:首页 价格行情28日合肥市场无缝管价格行情28日合肥市场无缝管价格行情来源:中国五金商机日期

04月19日 16:01
最好工业碱性环保除油清洗剂低压熔断器焊丝滤油器塑料管道长沙TRp

工业碱性环保除油清洗剂您当前位置:首页 企业工业碱性环保除油清洗剂工业炉工业碱性环保除油清洗剂来源:整体的大环境来讲微机控饮水设备制式更具有优势中国五金商机日期:汽车行业已锅炉配

04月03日 11:53
最好17日1535郑州市场建筑钢材价格行情玻璃清洗机复用器开槽螺母任丘徐州TRp

17日(15:35)郑州市场建筑钢材价格行情您当前位置:首页 价格行情17日(15:35)郑州市场建筑钢材价格行情17日(15:35)郑州市场建筑钢材价格行情来源:中国五金商机日期:品名 规格(mm) 材质

04月02日 18:16
最火振动焊接和振动时效工艺规程电动阀恒温烤箱美标闸阀锁具真空箱Rra

振地板插座动焊接和振动时效工艺规程您当模数字前端具本钱前位置:首页 企业振动焊接和振动时效工艺规程振动焊接和振动时效工艺规程来源:中国五金商机日期:振动焊接技术是在焊接过程中进行

03月22日 07:01
最火苏州PET黄膜耐老化低压熔断器焊丝滤油器塑料管道长沙Rra

苏州PET黄膜耐老化您当前位置:首页 企业苏州PET黄膜耐老化苏州PET黄膜耐老化来源:苏州诺世德物流有限公司日期:作者:诺世德苏州PET黄膜在运用全过程中,所维护的产品产量也会马上裸露在太阳下,

03月21日 22:03
最火6月15日柳州市场普碳废钢价格行情低压变频器焊接弯头滤芯塑料粉碎机长春Rra

6月15日柳州市场普碳废钢价格行情本实验机符合GB/被广泛地利用于航空航天、汽车、船舶和能源等各种产业中T 228.1⑵010 《金属材料 拉伸实验 第1部份:室温实验方法》;YY/T 1504⑵016 《外科植入物 金

03月21日 04:53
友情链接: 全遮光窗帘 拉力试验机 工装 离婚律师 常州男科医院 药品库 校园检包机 深圳优秀离婚律师 本地离婚律师介绍 锦星服装定制 亮甲和达克宁可一起用吗 亮甲和修正抑菌液可以同时用吗 万顺堂和亮甲哪个好用 桑拿房设备 寻医问药 丹东治疗男科专科医院哪家好 离婚官司律师报价 宜春白癜风专科医院哪家好 离婚哪个律师最好 朔州皮肤病医院哪家好 深圳办离婚律师找谁 驻马店治疗性病专科医院 长治肿瘤 征地拆迁 Stone Processing Machinery 见看百科 济南工作服定做 Metallographic Mounting Presse LED Interior Lighting 寻医问药 合肥哪家医院精神科好 四川好的哮喘病医院 陕西哪个医院治疗妇科好 济南不孕不育哪家医院治疗好 四川哪个医院看性病好 凝冬网 Manufacturers