home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
internet
/
tcpip204
/
TCPIP_Doc
/
Notes
/
Variables
< prev
Wrap
Text File
|
1995-02-20
|
931b
|
31 lines
Use of variables in TCPIP commands (v2.00g onwards)
==================================
Version of !TCPIP from 2.00g onwards have facilities for handling
string variables in commands and menu macros.
These variables may be embedded vitually anywhere, including in the
AutoExec, Config, Domain and resolve.ResConf files and in any commands
typed into the main command window, including of course, macros selected
from the command menu in the main window.
To create a variable, or re-assign a variable use the "set" command as
follows:
setvar <var_name> "<value>"
For example:
set user "adam"
set node "comptech"
set domain "demon.co.uk"
These variables are referenced by including them where needed,
surrounded by braces '{' and '}'. For example
set email "{user}@{host}.{domain}"
Assuming user, node and domain have been set as above, this would result
in email being set to "adam@comptech.demon.co.uk".