Quelqu'un peu me faire fonctionner le bout de code en bas, compilé en 32, sur du 64 bits.
Ou suis je obligé de faire un :
-Une compilation x86 (toto_x32.exe)
-Une compilation x86 (toto_x64.exe)
-Un prog tiers avec :
Code : Tout sélectionner
If(@OSArch == "X86")Then
FileInstall("C:\Path\toto_x86.exe","C:\LeChien\toto_x86.exe")
Else
FileInstall("C:\Path\toto_x64.exe","C:\LeChien\toto_x64.exe")
EndIf
Code : Tout sélectionner
func _getMac()
$macadresse = ""
$foo = Run(@ComSpec & " /c nbtstat.exe -A " & @IPAddress1,"",@SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
While 1
$line = StdoutRead($foo)
If @error Then ExitLoop
$test="Adresse MAC = "
if StringLen($line)>0 Then
for $i=1 to StringLen($line) - 14
if StringMid($line,$i,14)=$test then
$macadresse=StringUpper(StringMid($line,$i+14,17))
ExitLoop
EndIf
Next
EndIf
Wend
Return $macadresse
EndFunc
++