![]() |
Problem mit netsh und ShellExecute
Delphi-Quellcode:
Wenn ich das ausführe bleibt die alte IP Adresse. Wenn ich aber das netsh Kommando in der Konsole ausführe wird sie geändert. Was mache ich falsch???
ShellExecute(Handle,'open', PChar('netsh interface ip set address "LAN-Verbindung 2" static 192.168.15.1 255.255.255.0 192.168.15.150 0'), nil, nil, SW_HIDE);
Mfg Tobi |
Re: Problem mit netsh und ShellExecute
|
Re: Problem mit netsh und ShellExecute
Ich würde es so machen:
Delphi-Quellcode:
[edit]Sehe gerade, der Code hinter dem Link ist so wie meiner (bis auf ohne Handle)[/edit]
ShellExecute(Application.Handle, nil, 'netsh', 'interface ip set address "LAN-Verbindung 2" static 192.168.15.1 255.255.255.0 192.168.15.150 0', nil, SW_HIDE);
|
Re: Problem mit netsh und ShellExecute
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:18 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz