Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for getip98.bat

(view source code of getip98.bat as plain text)

  1. @ECHO OFF
  2. REM GetIP98.bat,  Version 1.00 for Windows 98
  3. REM Display IP address of local machine
  4. REM Written by Rob van der Woude
  5. REM http://www.robvanderwoude.com
  6.  
  7. NBTSTAT -n | FIND "IpAddress:" > TEMP.BAT
  8. > NODE.BAT ECHO SET IPaddr=%%2
  9. CALL TEMP.BAT
  10. ECHO IP Address: %IPaddr%
  11. DEL TEMP.BAT
  12. DEL NODE.BAT
  13.  

page last modified: 2024-04-16; loaded in 0.0107 seconds