Scripting: Determine Workstation's IP Address
The following script determines the workstation's IP address.
How It Works
Output from the PING command is piped into FIND to return only the results line, which is output to a text file. The contents of the text file is then fed into FOR which extracts the 4th (%%d), 5th (%%e), 6th (%%f) and 7th (%%g) parameters. These are then stored in environment variables so they are available to any further commands.
Copyright © 1996-2021 Cadzow TECH Pty. Ltd. All rights reserved.
Question/comment about this page? Please email firstname.lastname@example.org