Mombu the Microsoft Forum

Go Back   Mombu the Microsoft Forum > Microsoft > en-us names for ShellApp.GetDetailsOf columns, plz
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 17th October 17:41
alexander mueller
External User
 
Posts: 1
Default en-us names for ShellApp.GetDetailsOf columns, plz



Hi

The following script lists the names of detail
identifiers as returned by ShellApp.GetDetailsOf
for the MyVideo or MyDocuments Shell folder.

Since Shell automation returns the names in
localized manner, e.g. I get German names on my
German XP machine, I would like to ask, if s.o.
could be as kind as to run the script on his/her
English Windows machine, pipe the output to file
and copy the file's content into a reply to
this post


//------ GetDetailsNames.js
var sh = new ActiveXObject("Shell.Application");
var CSIDL_PERSONAL = 0x0005; // My Documents
var CSIDL_MYVIDEO = 0x000e; // "My Videos" folder

var ns = null;
if (null == (ns = GetFolder(CSIDL_MYVIDEO)))
if (null == (ns = GetFolder(CSIDL_PERSONAL)))
WSH.Quit();

WSH.Echo("Folder:", ns.Self.Path);
WSH.Echo("ID => DETAIL-NAME");
for (var i = 0; i < 100; i++) {
try {
var name = ns.GetDetailsOf(null, i);
if (typeof name == "string" && name.length > 0)
WSH.Echo( i, i <10 ? " ":"" ,"=>", name)
}
catch(ex) {
WSH.Echo(i, ex.number, ex.description)
}
};

function GetFolder(id) {
try {
return sh.Namespace(id);
}
catch(ex) {
return null;
}
}
//------ END GetDetailsNames.js

Btw you can redirect the output with the cmd-batch file
below


Thx very much for your help,
sorry for crossposting,
sorry for posting JS in m.p.s.vbscript,
Alex

//------ pipeNames.cmd
REM make sure pipeNames.cmd and GetDetailsNames.js
REM are locate din the same folder and that this folder is
REM is the active Directory of the CMD-prompt while running
REM this cmd-script

cmd /c cscript //NOLOGO .\GetDetailsNames.js > .\GetDetailsNames.txt


//------ END pipeNames.cmd
  Reply With Quote


 


2 17th October 17:41
marvin landman
External User
 
Posts: 1
Default en-us names for ShellApp.GetDetailsOf columns, plz



This is from Windows Vista: Folder: C:\Users\...\Videos
ID => DETAIL-NAME
0 => Name
1 => Size
2 => Type
3 => Date modified
4 => Date created
5 => Date accessed
6 => Attributes
7 => Offline status
8 => Offline availability
9 => Perceived type
10 => Owner
11 => Kinds
12 => Date taken
13 => 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 => Free/busy status
49 => Total size
50 => Account name
51 => Computer
52 => Anniversary
53 => Assistant's name
54 => Assistant's phone
55 => Birthday
56 => Business address
57 => Business city
58 => Business country/region
59 => Business P.O. box
60 => Business postal code
61 => Business state or province
62 => Business street
63 => Business fax
64 => Business home page
65 => Business phone
66 => Callback number
67 => Car phone
68 => Children
69 => Company main phone
70 => Department
71 => E-mail Address
72 => E-mail2
73 => E-mail3
74 => E-mail list
75 => E-mail display name
76 => File as
77 => First name
78 => Full name
79 => Gender
80 => Given name
81 => Hobbies
82 => Home address
83 => Home city
84 => Home country/region
85 => Home P.O. box
86 => Home postal code
87 => Home state or province
88 => Home street
89 => Home fax
90 => Home phone
91 => IM addresses
92 => Initials
93 => Job title
94 => Label
95 => Last name
96 => Mailing address
97 => Middle name
98 => Cell phone
99 => Nickname

Marvin
  Reply With Quote
3 17th October 17:41
alexander mueller
External User
 
Posts: 1
Default en-us names for ShellApp.GetDetailsOf columns, plz


Marvin Landman schrieb:

Hi Marvin

Thanks you very, very much for your fast reply
and kind help.
Seems that most of the data is mapped to different
numeric ids on Vista as compared to XP.
Seems I must keep my script dynamic, Aaargh

Alex
  Reply With Quote
4 17th October 17:41
mayayana
External User
 
Posts: 1
Default en-us names for ShellApp.GetDetailsOf columns, plz


Then why did you?
  Reply With Quote
5 17th October 17:41
alexander mueller
External User
 
Posts: 1
Default en-us names for ShellApp.GetDetailsOf columns, plz


mayayana schrieb:


increase likeliness of getting a reply

Alex
  Reply With Quote
Reply


Thread Tools
Display Modes




666