Resolve  v1.03

Copyright (c) 2003-2007 Gerald W. Gaston

------------------------------------------------------------------------------
Terms of Use:

THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED. USE AT YOUR OWN RISK.

YOU MAY NOT DISTRIBUTE RESOLVE WITHOUT THE EXPRESS WRITTEN PERMISSION OF GERALD W. GASTON.

------------------------------------------------------------------------------


Resolve is a simple console utility that resolves a hostname to it's IP address and vice versa. If given a hostname it will attempt to resolve the IP address.
If given an IP address it will attempt to resolve the hostname.

A 4NT v7+ plugin (only useful to JP Software 4NT and Take Command users) is also available.


Syntax:
------------------------------------------------------------------------------
RESOLVE {Hostname | IP_Address | /D:@IP | /E:@IP}

If given a hostname it will attempt to resolve the IP address. If given an IP address it will attempt to resolve the hostname.

RESOLVE does its best to extract the correct hostname or IP address part. Thus the following examples are also considered acceptable syntax:

RESOLVE \\192.168.0.101\ipc$
RESOLVE \\server1\share1\rest_of_UNCPath\file1.exe
RESOLVE http://www.jpsoft.com/ftp/beta/

The following switches are only available in the Resolve plugin for 4NT/TCMD:
/D:@IP  - disables the replacement of 4NT's @IPNAME and @IPAddress functions.
/E:@IP  - enables the replacement of 4NT's @IPNAME and @IPAddress functions.

Returns error code  0 if successful in resolving hostname or IP address.
Returns error code -1 if UNsuccessful in resolving hostname or IP address.
Returns error code -9 for all other errors (including showing this help).


Exit codes:
------------------------------------------------------------------------------
0   - successful in resolving hostname or IP address.
1   - unsuccessful in resolving hostname or IP address.
99 - for all other errors (including showing this help).

Note: The exit/error/return codes for Resolve.dll (4NT/TCMD v7+ plugin) are different (except for sucess). To read more about the Resolve plugin and examples for using it, please see the readme file that comes in the Resolve Plugin ZIP file.


Example:
------------------------------------------------------------------------------
RESOLVE oldpc1

  192.168.1.102


More Examples...



Copyright © 2004-2007 Gerald's Tools