Jump to content

Recommended Posts

Posted (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 by Mbee
Posted

Never mind. Yashied;s snippet was offered to someone who wasn't reading the registry, but rather a .reg file.

Sorry...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...