According to CMD /C SET /? the syntax is documented. Which part of the
syntax is illegal/undocumented?
Environment variable substitution has been enhanced as follows:
would expand the PATH environment variable, substituting each occurrence
of "str1" in the expanded result with "str2". "str2" can be the empty
string to effectively delete all occurrences of "str1" from the expanded
output. "str1" can begin with an asterisk, in which case it will match
everything from the beginning of the expanded output to the first
occurrence of the remaining portion of str1.
May also specify substrings for an expansion.
would expand the PATH environment variable, and then use only the 5
characters that begin at the 11th (offset 10) character of the expanded
result. If the length is not specified, then it defaults to the
remainder of the variable value. If either number (offset or length) is
negative, then the number used is the length of the environment variable
value added to the offset or length specified.
would extract the last 10 characters of the PATH variable.
would extract all but the last 2 characters of the PATH variable.
rconn <> wrote on 01/21/2011 04:36:57 PM:
> continuing to the illegal / undocumented syntax they're using for
> variable substitution.