1
How can I copy the value of an environment variable into another environment variable? I'm updating a DOS batch script for use on Windows XP. Let's say that I have environment variable FOO
, which contains some\file\path
, and I need to make an exact copy of this file in environment variable BAR
. How is that accomplished?
Variable FOO
is setup as such:
setx FOO %MY_ROOT%\some\file\path
How do I make BAR
equal FOO
by only referencing FOO
?
The equal sign (
=
) causes an error. – Jim Fell – 2012-01-30T17:58:14.713Yeah, I realized I had erroneously stuck those in there (that's
Set
's syntax), so I edited them out. :) – Ƭᴇcʜιᴇ007 – 2012-01-30T17:59:57.067