Figured I'd toss this out there, google isn't helping. First off, I'm not
familiar with Windows scripting, however the following should work.

My aim is to change a parameter in the server's registry to reflect its own
name. I don't have the reg.exe to use.

Example 1:

echo "Client_Name=%computername%"

displays:
"Client_Name=THAMES"

Example 2:

echo "Client_Name=%computername%" > test.txt

test.txt shows
"Client_Name=THAMES"

Example 3:

echo "Client_Name=%computername%" >> test.txt

test.txt shows:
"Client_Name=THAMES"
"Client_Name=THAMES"

Example 4:

Appending to an existing registry file with several entries called test.reg.

echo "Client_Name=%computername%" >> test.reg

test.reg shows (at the end of file) a bunch of garbled characters.

What's going on?

-alex

Reply via email to