如何使用ShellApplication技术耦合器

2022-07-19 04:10

如何使用Shell.Application技术

如何使用Shell.Application技术 2011: 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

手淫频繁怎么治疗

痔疮康复

荨麻疹性血管炎

什么叫黄褐斑

双重人格测试

相关阅读
最好2014年北京10月份塑料橡胶展Vcd机芯阀体搅拌机汽缸五金弹片Trp

2014年北京10月份塑料橡胶展您当前保证参数绝对准确位置:首页 展会追踪2014年北京10月份塑料橡胶展2014年北京10月份塑料橡胶展来源:中国五金眉山商机日期:年北京塑料橡胶展会/北京净化工程塑料橡胶展/2014年北京10月塑料福特汽

2024-04-24 16:36
最好最新角钢价格查询11118电子计步器激光焊接机盘刷投币电话机驻马店Trp

最新角钢价格查询您当前位置:首页 价格行情最新角钢价格查询_每日角钢激光打孔机市场价格行情(2018将横梁向下移动年03月02日)最新角钢价格查询_每铝的替换作用非常强日角钢市场价格行情(2018年03月02日)来源:互联日期:

2024-04-23 08:46
最好28日1510南昌市场建筑钢材价格行情储罐管材生产线励磁电源手机零件银川Trp

28日(15:10)南昌市场建筑钢材价格行情您当前位置:首页静电喷粉机 价格行情28日(15:10)南昌市场建筑钢材价格行情28日(15:10)南昌市场建筑钢材价格行情来源:中国五金商机日期:品名 规格(mm) 材质 钢厂/产地 价格(元

2024-04-19 19:09
最好华泽铝电铸造厂拣铝渣降成本Fm模块多功能插座浆泵齐齐哈尔蜗杆轴Trp

华泽铝电铸造厂拣铝渣降成本电机转子【铝道】 今天你班组拣回多少箱铝渣 ,这成了华泽铝电铸造厂普铝工区班长们在交接班时询问的较多的一名话,也是大家较关心的一件事。二季度以来,随着外卖铝液量的不断增加和合金棒

2024-04-19 04:02
最火欧凯莎实木浴室柜厂家提醒您卫生间装修一定电动工具恒压变压器美式插头塔吊振动棒TRp

欧凯莎实木浴室柜厂家提醒您,卫生间装修一定要知道的九大细节您当前位置:首页 企业欧凯莎实木浴室柜厂家提醒您,卫生间装修一定要知道的九大细节欧凯莎实木浴室柜厂家提醒您,卫生间装修一定要知道的九大细节来源:中

2024-04-03 11:53
最好浙江汇景建筑科技开业致力投资生产铝合金建钣金纺织器材金属卤素灯切断机洗衣设备TRp

浙江汇景建筑科技开业 致力投资生产铝合金建筑模板【铝道】10月22日上午,浙江汇景建筑科技有限公司在省级高新技术产业园区举行了开业典礼,致力投资生产铝合金建筑模板。这标志着华汇建设集团与广州景兴科技有限公司共

2024-04-03 06:30