cs_rico_85
Messages postés2Date d'inscriptiondimanche 25 février 2007StatutMembreDernière intervention15 septembre 2007
-
15 sept. 2007 à 11:49
cs_rico_85
Messages postés2Date d'inscriptiondimanche 25 février 2007StatutMembreDernière intervention15 septembre 2007
-
15 sept. 2007 à 12:17
Bonjour a tous,
je debut dans la prog en VB6, je voudrais savoir comment faire pour recuperer en fichier texte les informations d'une fenetre dos ( resulta d'un ping ), pour en suite fair une analyse des lignes. je ne vois pas quelle commandes utilisées & et commen proceder.
merci pour vos info.
cs_ghuysmans99
Messages postés3982Date d'inscriptionjeudi 14 juillet 2005StatutMembreDernière intervention30 juin 201316 15 sept. 2007 à 12:08
Public Function
WShell(Command As String) As String
Dim oShell As Object
Dim oScriptExec As Object
Dim sBuffer As String
Set oShell = CreateObject("WScript.Shell")
Set oScriptExec = oShell.Exec(Command)
sBuffer = oScriptExec.StdOut.ReadAll
WShell = sBuffer
End Function ,