Soutenir : black-out
Friday, 27. February 2009, 16:25:14
Blog-note d'un informaticien procrastinate...
( Monthly archive )
Friday, 27. February 2009, 16:25:14
Tuesday, 17. February 2009, 14:44:15
Monday, 16. February 2009, 19:42:30
Chérie, est-ce que tu peux me transférer le programme télévisé ?
Monday, 16. February 2009, 08:25:51
' VBS
strComputer = "." 'pour l ordinateur
Set WshShell = WScript.CreateObject("WScript.Shell")
' Set strComputer = WshShell.Environment("VOLATILE").Item("CLIENTNAME") 'pour environnement virtuel
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colAdapters = objWMIService.ExecQuery _
("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True")
For Each objAdapter in colAdapters
If Not IsNull(objAdapter.DefaultIPGateway) Then
For i = 0 To UBound(objAdapter.DefaultIPGateway)
WScript.Echo " Default gateway: " & objAdapter.DefaultIPGateway(i)
If objAdapter.DefaultIPGateway(i) = "192.168.1.6" Then
WScript.Echo "Votre Gateway : " & DefaultIPGateway(i)
End If
Next
End If
Next
Func _get_default_gateway()
$output = _get_cmd_output("netstat -rn")
$arr = StringSplit($output, "0.0.0.0", 1)
$arr2 = StringStripWS($arr[3], 1)
$arr2 = StringSplit($arr2, " ")
Return $arr2[1]
EndFunc
Func _get_cmd_output($cmd)
$cmd_timeout = 2000
$pid = Run($cmd,@WorkingDir,@SW_HIDE,2)
$timer = TimerInit()
while (ProcessExists($pid))
sleep(50)
If TimerDiff($timer) > $cmd_timeout Then ProcessClose($pid)
WEnd
$output = StdoutRead($pid)
Return StringStripCR($output)
EndFunc
Dim $i $i = _get_default_gateway() MsgBox(0, "","Votre passerelle : " & $i)
Monday, 2. February 2009, 09:49:49
Salut, En fait il n'y a pas de difficulté ne réside pas dans l ...
anonymous
arno writes: Salut, je ne sais pas si tu peux m'aider mais je ...
Windev n'est pas tellement le sujet du post, je l'ai cité en exe ...
anonymous
Certainement... Mais c'est en plus personnalisable avec Firefox ...
anonymous
Anonymous writes: Peut-être parce que c'est avec Internet Explo ...
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
|
| ||||||
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | |
Groumphy: @melissa_bxl > profite bien de ta journée :) Bon annif :)
Groumphy: @Mateusz > #bonjour ! #MorningTweet
Groumphy: @PaKaL_ORG > #blog #langue > peu importe la langue (vive les traducteurs), tant que le contenu plait :)
Groumphy: @PaKaL_ORG > #bloguer #anglais > heu... Ouais ouais... Ca aussi c'est vrai :)
Groumphy: lis un chouette article: http://twurl.nl/j3syas (via @integrateur_css) ....