# HG changeset patch # User Oleksandr Gavenko # Date 1254821908 -10800 # Node ID 44ae18f7c0aaf858e22bcf42ff1dbf2e5af246d0 # Parent c51f51e9a0154dc168a8c7d3d247cf1e06b1bb2b Variable for cmd. diff -r c51f51e9a015 -r 44ae18f7c0aa cmd.rst --- a/cmd.rst Thu Sep 24 10:50:51 2009 +0300 +++ b/cmd.rst Tue Oct 06 12:38:28 2009 +0300 @@ -1,5 +1,45 @@ -*- outline -*- +* Variables. + +Variable name start with letter and underscore, next chars can be letter, +number and underscore. Variable name is case insensitive. + +** List of variables. + + cmd> set +... +VAR=VALUE + +** Getting. + +Write %VAR% in place where you want insert variable VAr value. + +** Setting. + + cmd> set /p VAR=VALUE + +VAR is variable name, VALUE is value. + +** Deleting. + + cmd> set VAR= + +VAR is variable name. + +*** Input from user. + + cmd> set /p VAR=PROMPT + +VAR is variable name, PROMPT is displayed prompt. + +*** Input from file. + + cmd> set /p VAR=