Mbee Posted March 30, 2019 Posted March 30, 2019 (edited) I've been able to do what I need vis-à-vis registry alterations without having to deal with REG_EXPAND_SZ value types, but alas, that time has passed. @Yashied posted a one-liner to convert a REG_EXPAND_SZ to a string... Local $Str = String(BinaryToString(Binary('0x' & StringReplace(StringTrimLeft($arg_RegExpandVal, 7), ',', '')), 2)) Just reading that makes my head hurt! So I'm at a loss as to how to convert the other way; from a string to a REG_EXPAND_SZ. An example value is: Quote "C:\Program Files\ACD Systems\ACDSee Ultimate\9.0\ACDSeeUltimate9.exe" "%1" I'm tempted to write it to the registry just like a REG_SZ but use REG_EXPAND_SZ as the type -- would that be a mistake? Or do I really need to convert it into numeric chunks? Thanks Edited March 30, 2019 by Mbee
Mbee Posted March 30, 2019 Author Posted March 30, 2019 Never mind. Yashied;s snippet was offered to someone who wasn't reading the registry, but rather a .reg file. Sorry...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now