Votre aide svp.
Je vous prie de me dire où elle est l’erreur dans le code 2, le code 1 marche parfaitement.
Merci infiniment pour votre aide.
Cordialement.
code 1:
Local $Pass = "123"
Local $Powershell = @SystemDir&"\WindowsPowerShell\v1.0\powershell.exe"
Local $program = "Makecert -n 'CN=TEST' -ic 'keySHA1.cer' -iv 'KeySHA1.pvk' -a sha1 -len 2048 -sky exchange -pe -sv 'Information_CA_sha1.pvk' 'Information_CA_sha1.cer'"
MsgBox(0,"test1",$program)
ShellExecute($Powershell,$program, "", "", @SW_HIDE)
Local $Powershell = @SystemDir&"\WindowsPowerShell\v1.0\powershell.exe"
Local $program = "Makecert -n 'CN=TEST' -ic 'keySHA1.cer' -iv 'KeySHA1.pvk' -a sha1 -len 2048 -sky exchange -pe -sv 'Information_CA_sha1.pvk' 'Information_CA_sha1.cer'"
MsgBox(0,"test1",$program)
ShellExecute($Powershell,$program, "", "", @SW_HIDE)
Local $Pass = "123"
Local $Powershell = @SystemDir&"\WindowsPowerShell\v1.0\powershell.exe"
Local $Pram01 = '"Makecert'
Local $Options01 = "'CN=TEST'"
Local $Options02 = "'keySHA1.cer'"
Local $Options03 = "'KeySHA1.pvk'"
Local $Options04 = "-a sha1 -len 2048 -sky exchange -pe -sv"
Local $Options05 = "'Information_CA_sha1.pvk'"
Local $Options06 = "'Information_CA_sha1.cer'"
Local $program = $Pram01&" "&"-n"&" "&$Options01&" "&"ic"&" "&$Options02&" "&"iv"&" "&$Options03&" "&$Options04&" "&$Options05&" "&$Options06&'"'
MsgBox(0,"test1",$program1)
ShellExecute($Powershell,$program, "", "", @SW_HIDE)
Local $Powershell = @SystemDir&"\WindowsPowerShell\v1.0\powershell.exe"
Local $Pram01 = '"Makecert'
Local $Options01 = "'CN=TEST'"
Local $Options02 = "'keySHA1.cer'"
Local $Options03 = "'KeySHA1.pvk'"
Local $Options04 = "-a sha1 -len 2048 -sky exchange -pe -sv"
Local $Options05 = "'Information_CA_sha1.pvk'"
Local $Options06 = "'Information_CA_sha1.cer'"
Local $program = $Pram01&" "&"-n"&" "&$Options01&" "&"ic"&" "&$Options02&" "&"iv"&" "&$Options03&" "&$Options04&" "&$Options05&" "&$Options06&'"'
MsgBox(0,"test1",$program1)
ShellExecute($Powershell,$program, "", "", @SW_HIDE)