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":

Nom : Screen Shot 06-24-18 at 09.36 PM.PNG
Affichages : 210
Taille : 10,5 Ko

Après des recherches sur google j'ai trouvé:

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 : Sélectionner tout - Visualiser dans une fenêtre à part
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 !