1 pièce(s) jointe(s)
Raccourci et propriété WindowStyle
Bonsoir à tous, je bloque sur une valeur de la propriété "WindowStyle". Lors de la création d'un raccourci, j'aimerais que l’icône, après l'exécution, se place dans les "icônes cachées":
Pièce jointe 391192
Après des recherches sur google j'ai trouvé:
Citation:
1: Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position.
3: Activates the window and displays it as a maximized window.
7: Minimizes the window and activates the next top-level window in the Z order.
En existe t-il d'autres ? notamment pour l'effet que je recherche ?
Code:
1 2 3 4 5 6 7 8 9
| Set oShell = CreateObject("WScript.Shell")
Set lnk = oShell.CreateShortcut(strHomeFolder & "\trieurdossier.lnk")
lnk.WindowStyle = 7
lnk.IconLocation =
lnk.TargetPath =
lnk.arguments =
lnk.Save |
Je vous remercie ! :)