Trying to copy code into registry and it changes

Trying to copy code from a Notepad file into a registry key and it keeps turning into the code below.  How can I keep the original format that is in the attached file?  

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ivano ViolaSystem AdministratorCommented:
Did you try it like this?:
Ivano ViolaSystem AdministratorCommented:
Using the "   "
regsampAuthor Commented:
I tried using the "  " and the code still changes.  
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

Ivano ViolaSystem AdministratorCommented:
What is the full path to the registry key you are trying to add/edit?
HKLM - Software - ???
Can you please post the actual .reg file?
regsampAuthor Commented:
I am trying to get access to the computer to get the full path for the registry.  The actual code I want to use is in the attachment.  
regsampAuthor Commented:
The path is Local Machine/Software/Crystal Decisions/9.0/Crystal Reports/Keycodes/CR Ent
Ivano ViolaSystem AdministratorCommented:
Try the attached reg file. I've tried it and seems to work fine.
Ivano ViolaSystem AdministratorCommented:
One it a new string value you're adding?
Ivano ViolaSystem AdministratorCommented:
The above reg file adds the code a DWORD value.
The one attached to this post adds it as a new String Value (named: code). You can change the name (Code) by opening the reg file with notepad and changing the name.
regsampAuthor Commented:
Ivanoviola, I am trying to add this value.  The one I listed above is what it turns into and I do not want to add that.  This is a new string.  The attachment below is the value I needed added unchanged.  
Ivano ViolaSystem AdministratorCommented:
What about this then:
see attached

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
regsampAuthor Commented:
Okay, thank you and let me try that.  
B HCommented:
you can very easily do this thru a command prompt, either locally or from a different machine with authentication... see code below

reg add "HKLM\Software\Crystal Decisions\9.0\Crystal Reports\Keycodes\CR Ent" /v ValueName /t Type /d "1A6S52-01C0000-GG000GM1315991252639482340" /f

if you want to do it from "upstairs" and push it to another machine:
reg add "\\computer\HKLM\Software\Crystal Decisions\9.0\Crystal Reports\Keycodes\CR Ent" /v ValueName /t Type /d "1A6S52-01C0000-GG000GM1315991252639482340" /f

in either case, you have to change "ValueName" to whatever you want the value to be called
and, change "Type" to whatever it should be:  REG_SZ or REG_DWORD
(string or dword)

Open in new window

B HCommented:
line 1 for doing it locally, or line 4 for doing it from a remote machine.  note lines 6 and 7 too.
regsampAuthor Commented:
Thank you for the command line approach bryon.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Project Management

From novice to tech pro — start learning today.