Comment récupérer la valeur "alt" d'une image dans un fichier HTA et la stocker dans une variable afin de l'utiliser comme index d'icone de Shell32.dll
Car je n'ai pas encore trouvé une solution en vbscript How can i show the change icon dialog box, with a vbscript or a command line?
Donc, j'ai pensé à faire un HTA avec les images des icones avec leurs index qui me permet de les cliquer et obtenir leurs index dans une variable
Icon = "%systemroot%\system32\shell32.dll," & index

Voici mon petit brouillon en HTA : je l'ai copié de ce site : http://help4windows.com/windows_8_shell32_dll.shtml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<Title>Hackoo Icon Folder Changer</Title>
<head>
<link rel="stylesheet" type="text/css" href="http://help4windows.com/webfiles/style-help4windows.css">
<SCRIPT LANGUAGE="VBScript">
Function Test()
Dim elems, t, MsG
    set elems = document.getElementsByTagName("img")
    for t = 0 to elems.length - 1  
        MsG = MsG & ", alt=" & elems(t).alt 
    Next
    MsgBox MsG
End Function
</SCRIPT>
<head>
<body>
<center><font color="White"> Click to choose an icon for your folder to be set</font><br>
<table class="data">
<tr>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-000.jpg" alt="0" OnClick="Test()"><br>0</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-001.jpg" alt="1"><br>1</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-002.jpg" alt="2"><br>2</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-003.jpg" alt="3"><br>3</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-004.jpg" alt="4"><br>4</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-005.jpg" alt="5"><br>5</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-006.jpg" alt="6"><br>6</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-007.jpg" alt="7"><br>7</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-008.jpg" alt="8"><br>8</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-009.jpg" alt="9"><br>9</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-010.jpg" alt="10"><br>10</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-011.jpg" alt="11"><br>11</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-012.jpg" alt="12"><br>12</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-013.jpg" alt="13"><br>13</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-014.jpg" alt="14"><br>14</td>
</tr>
<tr>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-015.jpg" alt="15"><br>15</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-016.jpg" alt="16"><br>16</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-017.jpg" alt="17"><br>17</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-018.jpg" alt="18"><br>18</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-019.jpg" alt="19"><br>19</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-020.jpg" alt="20"><br>20</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-021.jpg" alt="21"><br>21</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-022.jpg" alt="22"><br>22</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-023.jpg" alt="23"><br>23</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-024.jpg" alt="24"><br>24</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-025.jpg" alt="25"><br>25</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-026.jpg" alt="26"><br>26</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-027.jpg" alt="27"><br>27</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-028.jpg" alt="28"><br>28</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-029.jpg" alt="29"><br>29</td>
</tr>
<tr>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-030.jpg" alt="30"><br>30</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-031.jpg" alt="31"><br>31</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-032.jpg" alt="32"><br>32</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-033.jpg" alt="33"><br>33</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-034.jpg" alt="34"><br>34</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-035.jpg" alt="35"><br>35</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-036.jpg" alt="36"><br>36</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-037.jpg" alt="37"><br>37</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-038.jpg" alt="38"><br>38</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-039.jpg" alt="39"><br>39</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-040.jpg" alt="40"><br>40</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-041.jpg" alt="41"><br>41</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-042.jpg" alt="42"><br>42</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-043.jpg" alt="43"><br>43</td>
  <td><img src="http://help4windows.com/icons_win_8/win8_ico_shell32_dll-044.jpg" alt="44"><br>44</td>
</tr>
</table>
<body>