Hallo,
habe mal ein problem.
ich habe folgendes Script
$name= "LAN-Verbindung"
$ip = "192.168.3.5"
$gate = "192.168.3.1"
$sub = "255.255.225.0"
$programm = "netsh"
Func srcipt()
Run($programm&' interface ip set address name="'&$name&'" source=static addr='&$ip&' mask='&$sub, "", @SW_SHOW)
endfunc
also wenn ich das ausführen lasse klappt es nicht. Wenn ich das manuell in die cmd BOx schreibe klappt es.
Dieses scrip funktioniert ohne probleme:
Func dhcp()
Run($programm&' interface ip set address name="'&$name&'" source=dhcp', "", @SW_SHOW)
EndFunc
Was mache ich falsch?