Question

Create a Batch file that will find the ip address of a pc, and display to the screen please provi...

Create a Batch file that will find the ip address of a pc, and display to the screen

please provide pics

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Copy the below code to a notepad and save it as any_file_name.bat

@echo off

echo.
echo I am logged in as: %username%
echo.
FOR /F "tokens=2 delims=:" %%a IN ('ipconfig ^| findstr /IC:"IPv4 Address"') DO echo IP Address:%%a
echo.
echo.
pause
exit

ip.bat Notepad File Edit Format View Help @echo off echo echo I am logged in as: %username% echo FOR /F tokens-2 delims = :

CWindows system32\cmd.exe I am logged in as: Nil IP Address 192..100 Press any key to continue . .

Add a comment
Know the answer?
Add Answer to:
Create a Batch file that will find the ip address of a pc, and display to the screen please provi...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT