12-11-2022, 07:08 PM
(This post was last modified: 12-11-2022, 07:10 PM by Kernelpanic.)
Nothing is displayed for the changed file. The tmp.one and tmp.two files are identical. With tmp.one-n, only the IPv4 address has been made unrecognizable.
Code: (Select All)
' CAUTION - THE SHELL STATEMENT WILL OVERWRITE ANY PREEXISTING FILE YOU HAVE IN YOUR LOCAL DIRECTORY NAMED "tmp.tmp".
' Change tmp.tmp to something else if that's a problem.
Shell _Hide "ipconfig>tmp.one"
Open "tmp.one" For Binary As #1
a$ = Space$(LOF(1))
Get #1, , a$
Close #1
IP4Address$ = Mid$(a$, InStr(LCase$(a$), "ipv4 address"))
IP4Address$ = Mid$(IP4Address$, 1, InStr(IP4Address$, Chr$(13)) - 1)
IP4Address$ = _Trim$(Mid$(IP4Address$, InStr(IP4Address$, ":") + 1))
Print "Your IPv4 Address is: ";
Print IP4Address$
End
Code: (Select All)
Windows-IP-Konfiguration
Ethernet-Adapter Ethernet:
Verbindungsspezifisches DNS-Suffix: fritz.box
IPv6-Adresse. . . . . . . . . . . : 2001:1a81:52c8:4a00:a86:9c55:2734:b7a1
Tempor„re IPv6-Adresse. . . . . . : 2001:1a81:52c8:4a00:6011:887f:c7ce:4387
Verbindungslokale IPv6-Adresse . : fe80::9e8d:4fa3:2ed1:96c8%14
IPv4-Adresse . . . . . . . . . . : 192.---.---.--
Subnetzmaske . . . . . . . . . . : 255.255.255.0
Standardgateway . . . . . . . . . : fe80::2e3a:fdff:fef8:9a1e%14
192.---.---.-
Ethernet-Adapter VirtualBox Host-Only Network:
Verbindungsspezifisches DNS-Suffix:
Verbindungslokale IPv6-Adresse . : fe80::84ec:3c21:6d38:fc30%6
IPv4-Adresse . . . . . . . . . . : 192.---.---.-
Subnetzmaske . . . . . . . . . . : 255.255.255.0
Standardgateway . . . . . . . . . :