Link to home
Start Free TrialLog in
Avatar of regsamp
regsamp

asked on

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?  
A6S52-01C0000-GG000GM
131599125
2639482340

cr-ent.txt
Avatar of Ivano Viola
Ivano Viola
Flag of United States of America image

Did you try it like this?:
"1A6S52-01C0000-GG000GM1315991252639482340"
Using the "   "
Avatar of regsamp
regsamp

ASKER

I tried using the "  " and the code still changes.  
What is the full path to the registry key you are trying to add/edit?
HKLM - Software - ???
Avatar of johnb6767
Can you please post the actual .reg file?
Avatar of regsamp

ASKER

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.  
Avatar of regsamp

ASKER

The path is Local Machine/Software/Crystal Decisions/9.0/Crystal Reports/Keycodes/CR Ent
Try the attached reg file. I've tried it and seems to work fine.
code.reg
One sec.....is it a new string value you're adding?
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.
code2.reg
Avatar of regsamp

ASKER

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.  
clip-image002.jpg
ASKER CERTIFIED SOLUTION
Avatar of Ivano Viola
Ivano Viola
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of regsamp

ASKER

Okay, thank you and let me try that.  
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
line 1 for doing it locally, or line 4 for doing it from a remote machine.  note lines 6 and 7 too.
Avatar of regsamp

ASKER

Thank you for the command line approach bryon.