• <tfoot id='qUIdV'></tfoot>
  • <small id='qUIdV'></small><noframes id='qUIdV'>

      <legend id='qUIdV'><style id='qUIdV'><dir id='qUIdV'><q id='qUIdV'></q></dir></style></legend>
    1. <i id='qUIdV'><tr id='qUIdV'><dt id='qUIdV'><q id='qUIdV'><span id='qUIdV'><b id='qUIdV'><form id='qUIdV'><ins id='qUIdV'></ins><ul id='qUIdV'></ul><sub id='qUIdV'></sub></form><legend id='qUIdV'></legend><bdo id='qUIdV'><pre id='qUIdV'><center id='qUIdV'></center></pre></bdo></b><th id='qUIdV'></th></span></q></dt></tr></i><div id='qUIdV'><tfoot id='qUIdV'></tfoot><dl id='qUIdV'><fieldset id='qUIdV'></fieldset></dl></div>

          <bdo id='qUIdV'></bdo><ul id='qUIdV'></ul>
      1. Shell32.Folder.GetDetailsOf(..,..) 有哪些可用选项?

        What options are available for Shell32.Folder.GetDetailsOf(..,..)?(Shell32.Folder.GetDetailsOf(..,..) 有哪些可用选项?)
          <tbody id='u5q9J'></tbody>

          <legend id='u5q9J'><style id='u5q9J'><dir id='u5q9J'><q id='u5q9J'></q></dir></style></legend>

        1. <small id='u5q9J'></small><noframes id='u5q9J'>

          <i id='u5q9J'><tr id='u5q9J'><dt id='u5q9J'><q id='u5q9J'><span id='u5q9J'><b id='u5q9J'><form id='u5q9J'><ins id='u5q9J'></ins><ul id='u5q9J'></ul><sub id='u5q9J'></sub></form><legend id='u5q9J'></legend><bdo id='u5q9J'><pre id='u5q9J'><center id='u5q9J'></center></pre></bdo></b><th id='u5q9J'></th></span></q></dt></tr></i><div id='u5q9J'><tfoot id='u5q9J'></tfoot><dl id='u5q9J'><fieldset id='u5q9J'></fieldset></dl></div>

            <tfoot id='u5q9J'></tfoot>

                • <bdo id='u5q9J'></bdo><ul id='u5q9J'></ul>
                  本文介绍了Shell32.Folder.GetDetailsOf(..,..) 有哪些可用选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我已经看到使用 GetDetailsOf() 来获取有关外壳项目的详细信息的答案,但数字始终是幻数.

                  I've seen answers using GetDetailsOf() to get details about shell items, but the numbers are always magic numbers.

                  我查看了 FolderItem 和 GetDetailsOf 但什么也没找到.(后者中的列表并不包含所有内容.它们不包括描述"、作者",也不包括回收站删除日期......)

                  I've looked at the docs for both FolderItem and GetDetailsOf but found nothing. (The list in the latter is not for everything. They don't cover "Description", "Authors", nor the recycle bin delete date...)

                  是否有一些方法可以返回项目的可能选项?它在某处列出吗?

                  Is there some method that will return the possible options for an item? Is it listed somewhere?

                  推荐答案

                  我偶然发现了这个.如果您将 null 传递给 GetDetailsOf,那么它会以列名进行响应.例如,使用 cscript 执行以下 JScript:

                  I figured this out by accident. If you pass null into GetDetailsOf then it responds with the column names. For example, execute the following JScript with cscript:

                  var shellapp = WScript.CreateObject("Shell.Application");
                  var folder = shellapp.NameSpace("D:\");
                  for (var j = 0; j < 0xFFFF; j++) {
                      detail = folder.GetDetailsOf(null, j);
                      if (!detail) {
                          break;
                      }
                      WScript.Echo("[" + j + "] = " + detail);
                  }
                  

                  在我的 Windows 10 系统上输出:

                  On my Windows 10 system this outputs:

                  [0] = Name
                  [1] = Size
                  [2] = Item type
                  [3] = Date modified
                  [4] = Date created
                  [5] = Date accessed
                  [6] = Attributes
                  [7] = Offline status
                  [8] = Availability
                  [9] = Perceived type
                  [10] = Owner
                  [11] = Kind
                  [12] = Date taken
                  [13] = Contributing artists
                  [14] = Album
                  [15] = Year
                  [16] = Genre
                  [17] = Conductors
                  [18] = Tags
                  [19] = Rating
                  [20] = Authors
                  [21] = Title
                  [22] = Subject
                  [23] = Categories
                  [24] = Comments
                  [25] = Copyright
                  [26] = #
                  [27] = Length
                  [28] = Bit rate
                  [29] = Protected
                  [30] = Camera model
                  [31] = Dimensions
                  [32] = Camera maker
                  [33] = Company
                  [34] = File description
                  [35] = Program name
                  [36] = Duration
                  [37] = Is online
                  [38] = Is recurring
                  [39] = Location
                  [40] = Optional attendee addresses
                  [41] = Optional attendees
                  [42] = Organizer address
                  [43] = Organizer name
                  [44] = Reminder time
                  [45] = Required attendee addresses
                  [46] = Required attendees
                  [47] = Resources
                  [48] = Meeting status
                  [49] = Free/busy status
                  [50] = Total size
                  [51] = Account name
                  

                  这与 Windows 2000 完全不同,详见 检索扩展文件属性.顺便说一句,如果您传入不同的 NameSpace,那么您将获得不同的属性.在我的示例中,我询问驱动器 D: 上的文件可以使用哪些属性,这可能因格式而异.

                  And this is quite different from Windows 2000 as detailed from Retrieving Extended File Properties. Incidentally if you pass in a different NameSpace then you're going to get different attributes. In my example, I'm asking what attributes are available for files on drive D: which could be different depending on its format.

                  这篇关于Shell32.Folder.GetDetailsOf(..,..) 有哪些可用选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Performance overhead of using attributes in .NET(在 .NET 中使用属性的性能开销)
                  Accessing attribute info from DTE(从 DTE 访问属性信息)
                  c# Hide a property in datagridview with datasource(c#使用数据源隐藏datagridview中的属性)
                  Extract Display name and description Attribute from within a HTML helper(从 HTML 帮助器中提取显示名称和描述属性)
                  How can I force the PropertyGrid to show a custom dialog for a specific property?(如何强制 PropertyGrid 显示特定属性的自定义对话框?)
                  Associate attribute with code generated property in .net(将属性与 .net 中的代码生成属性相关联)
                      <bdo id='wHWg7'></bdo><ul id='wHWg7'></ul>
                      <legend id='wHWg7'><style id='wHWg7'><dir id='wHWg7'><q id='wHWg7'></q></dir></style></legend>
                      1. <i id='wHWg7'><tr id='wHWg7'><dt id='wHWg7'><q id='wHWg7'><span id='wHWg7'><b id='wHWg7'><form id='wHWg7'><ins id='wHWg7'></ins><ul id='wHWg7'></ul><sub id='wHWg7'></sub></form><legend id='wHWg7'></legend><bdo id='wHWg7'><pre id='wHWg7'><center id='wHWg7'></center></pre></bdo></b><th id='wHWg7'></th></span></q></dt></tr></i><div id='wHWg7'><tfoot id='wHWg7'></tfoot><dl id='wHWg7'><fieldset id='wHWg7'></fieldset></dl></div>

                        1. <small id='wHWg7'></small><noframes id='wHWg7'>

                            <tbody id='wHWg7'></tbody>

                            <tfoot id='wHWg7'></tfoot>