This is basic Tcl syntax: Tcl is a whitespace-separated language. Unless you quote characters, spaces and/or tabs delimit argument (or "word"

boundaries. Tcl has 2 types of quoting characters:
[ul][li]Curly braces (
[tt]{}[/tt]) group together characters into a single argument, but prevent the Tcl interpreter from performing any substitutions on the contents before executing the command. Basically, it's a case of "what you see is what you get."[/li]
[li]Double quotes (
[tt]""[/tt]) group together characters into a single argument, but allow the Tcl interpreter to perform substitution on its contents before executing the command. Thus, the interpreter can perform:
[ul][li]
[tt]$[/tt] variable substitutions[/li][li]
[tt]\[/tt] "escape" substitutions[/li][li]
[tt][ignore][][/ignore][/tt] command substitutions[/li][/ul][/ul]So (ignoring bad line breaks that might occur in this post), in your situation, you could do either:
Code:
registry set "HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Control\\Session Manager\\Environment\\my_env_variable" test
or
Code:
registry set {HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment\my_env_variable} test
- Ken Jones, President, ken@avia-training.com
Avia Training and Consulting,
866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax