Answer the question
In order to leave comments, you need to log in
How to display IP through bat-file?
There is a command ipconfig
that displays the IP address of the machine.
There is a command Msg %username% Любой текст
that displays a window with a text message.
So, you need to create a bat file at startup that will display a window with a message, for example: "Your IP address is 192.168.1.1"
How can this be done, please tell me. Thank you!
Answer the question
In order to leave comments, you need to log in
@echo off
echo %username% hello
WMIC NICCONFIG Where IPEnabled^=TRUE Get IPAddress /Value
pause
PS
Check internet connection
@echo off
echo %username% hello
WMIC NICCONFIG Where IPEnabled^=TRUE Get IPAddress /Value
Ping -n 1 -w 400 ya.ru 2>nul|Find "TTL=">nul&&(
Echo Internet Online
pause
)||(
Echo Internet Offline
pause
)
pause
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question