Scripting: Determine Workstation's IP AddressThe following script determines the workstation's IP address. @echo off How It WorksOutput 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. Advantages
Disadvantages
Copyright © 1996-2023 Cadzow TECH Pty. Ltd. All rights reserved. Information and prices contained in this website may change without notice. Terms of use. Question/comment about this page? Please email webguru@cadzow.com.au |