I'm trying to save YM password from:
HKCU\Software\yahoo\pager
"Yahoo! User ID"="someID"
"ETS"="longstring..."
What I want, is to export the above two values to a .reg file.
I tried everything I know and found:
TextFile.WriteFromString
INIFile.SetValue
As you can see, both metods are close but not good, because the .reg file I'm trying to create must contain:
Windows Registry Editor Version 5.00 to be the first line and after this line, my exported values :(
I know the inside/out of registry editing, I'm not a noob, but this...
Also, I know you can export a key, using either reg.exe or regedit.exe but why not a value too
If I try to use TextFile.WriteFromString to write the ETS value to a file, all i get is garbage text. The only way I've found to properly write this value (ETS) is by using INIFile.SetValue, but that is just not enough, I can't form a complete .reg file.
I tried many other tricks but nothing worked, above is just some left-over code to show that I really tried :(
Put it simply, I need to know how to export these two values:
"Yahoo! User ID"
"ETS"
located here:
HKCU\Software\yahoo\pager
to a .reg file.
If I can't do it using AMS, maybe somenone knows of a command line utility, script, or whatever, wich exports registry values too, not only keys.
Thanks for taking the time to read my problem and sorry for this -not so well written- post.
HKCU\Software\yahoo\pager
"Yahoo! User ID"="someID"
"ETS"="longstring..."
What I want, is to export the above two values to a .reg file.
I tried everything I know and found:
TextFile.WriteFromString
Code:
Psw = Button.GetState("btn_Psw"); if Psw == 1 then YID = Registry.GetValue(HKEY_CURRENT_USER, "Software\\yahoo\\pager", "Yahoo! User ID", true); TextFile.WriteFromString(_DesktopFolder.."\\Yahoo! User Password.reg", YID, false); end
Code:
Psw = Button.GetState("btn_Psw"); if Psw == 1 then ETS = Registry.GetValue(HKEY_CURRENT_USER, "Software\\yahoo\\pager", "ETS", true); INIFile.SetValue(_DesktopFolder.."\\Yahoo! User Password.reg", "HKEY_CURRENT_USER\\yahoo\\pager", ETS, ETS); end
Windows Registry Editor Version 5.00 to be the first line and after this line, my exported values :(
I know the inside/out of registry editing, I'm not a noob, but this...
Also, I know you can export a key, using either reg.exe or regedit.exe but why not a value too
If I try to use TextFile.WriteFromString to write the ETS value to a file, all i get is garbage text. The only way I've found to properly write this value (ETS) is by using INIFile.SetValue, but that is just not enough, I can't form a complete .reg file.
I tried many other tricks but nothing worked, above is just some left-over code to show that I really tried :(
Put it simply, I need to know how to export these two values:
"Yahoo! User ID"
"ETS"
located here:
HKCU\Software\yahoo\pager
to a .reg file.
If I can't do it using AMS, maybe somenone knows of a command line utility, script, or whatever, wich exports registry values too, not only keys.
Thanks for taking the time to read my problem and sorry for this -not so well written- post.
Comment