Transmettre en VBA un tableau de String à un script Powershell
Bonjour,
J'ai écris un script Powershell qui prends en entrée les type de paramètres un String et un Tableau de String.
Code:
1 2 3 4 5
| param(
[string[]]$Param1,
[string]$Param2,
) |
Ce script fonctionne parfaitement depuis longtemps.
Mais pour faciliter la vie des utilisateurs , j'ai créé avec Visual Studio Community une interface graphique (en VBA) et c'est là que je commence à nager la brasse couler.
J'ai un petit souci pour transmettre "param1" qui est un tableau de String.
Comment transmettre au script Powershell un Paramètre reconnu comme un tableau de string à partir de l'interface graphique en VBA ???? 8O :roll: :aie:
La commande que je lance en VBA est :
Code:
Commande = "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy unrestricted -file " & TextBox4.Text & " -Param2" & ComboBox1.Text & " -Param1" & TextBox1.Text
Par avance merci de votre aide....