Bonjour,
J'ai le code ci-dessous qui fonction sans erreur, mais il affiche la femetre avec les infos mais il la ferme trop tot malgrés une commande Shell "pause"
J'ai passe en revue les option de la commande Shell, mais je n'est pas trouver !
Merci a+
[cpp]Private Sub Commande6_Click()
On Error GoTo Err_Commande6_Click
Dim stAppName As String
Dim a$
a$ = "ipconfig "
stAppName = a$
Call Shell(stAppName, 1)
a$ = "pause"
Call Shell(stAppName, 6)
Exit_Commande6_Click:
Exit Sub
Err_Commande6_Click:
MsgBox Err.Description
Resume Exit_Commande6_Click
End Sub[/cpp]
J'ai le code ci-dessous qui fonction sans erreur, mais il affiche la femetre avec les infos mais il la ferme trop tot malgrés une commande Shell "pause"
J'ai passe en revue les option de la commande Shell, mais je n'est pas trouver !
Merci a+
[cpp]Private Sub Commande6_Click()
On Error GoTo Err_Commande6_Click
Dim stAppName As String
Dim a$
a$ = "ipconfig "
stAppName = a$
Call Shell(stAppName, 1)
a$ = "pause"
Call Shell(stAppName, 6)
Exit_Commande6_Click:
Exit Sub
Err_Commande6_Click:
MsgBox Err.Description
Resume Exit_Commande6_Click
End Sub[/cpp]