Suche Start-Batch: Wenn IP ist gleich 192.168.x.y dann starte ein Programm
Hallo Gemeinde,
ich brauche mal euer Schwarmwissen...
Ist bestimmt total simpel, aber ich komme im Moment nicht drauf
Ich möchte nach dem Login ein Programm starten, wenn die IP 192.168.x.y oder 192.168.y.z lautet.
Kann mir da jemand weiterhelfen?
Viele Grüße
Christian
ich brauche mal euer Schwarmwissen...
Ist bestimmt total simpel, aber ich komme im Moment nicht drauf
Ich möchte nach dem Login ein Programm starten, wenn die IP 192.168.x.y oder 192.168.y.z lautet.
Kann mir da jemand weiterhelfen?
Viele Grüße
Christian
Please also mark the comments that contributed to the solution of the article
Content-Key: 480351
Url: https://administrator.de/contentid/480351
Printed on: April 27, 2024 at 06:04 o'clock
5 Comments
Latest comment
@echo off & setlocal
FOR /F "tokens=2-4 delims=\ " %%i in ('ipconfig ^|
find "192.168.x.y"') do (start bat1.bat)
Sollte funktionieren.
h.