What do these cryptic strings really mean in registry associations?

Looking at my HKEY_CLASSES_ROOT\Word.Document.12\shell\Open\command\command value (Word 2010 'Open' shell association) I see this sort of nonsense:

xb'BV5!!!!!!!!!MKKSkWORDFiles>bi$T!V!0Z={Pk0vm~AZu /n "%1"

where it's all clear about last /n "%1" parts, but the first cryptic one apparently denotes some magic instruction on running MS Word. Same voodoo I have for Excel and other Office associations.

My numerous attempts to educate myself via internet about what's going on there didn't bring any results at all. Lots of people discuss the "right incantations" to establish for Word/Excel associations working properly, however I didn't see any of them (like me too) ever understood what they're doing and why they really thought this black magic would work for other people - just because it somehow managed to work on their machines.

However, what I really didn't understand is the fact that no one (whom I spot on internet, of course) ever asked anything like "how on Earth it works?" or "what does it really mean?" or least not the last, "do you think I have a nasty virus?!". Ok, then I'm going to be the first, I guess.

My question here is not why people are so incurious though. My question is how do these strings really work in registry associations? That must be some undocumented (or documented??) Windows (presumably, Windows Shell) feature transforming such strings to something human-digestible.


You are dealing with the "Undocumented API" problem.

That string is a secret, implementation specific, string that Microsoft does not want as public knowledge. If the format of the string was public and Microsoft ever wanted to change how it loaded files they would need to still support the old string for backwards compatibility, if it is a undocumented API they are allowed to change it without going through the trouble of checking if 3rd party stuff will break.

Microsoft is actually one of the best companies out there when it comes to being careful to not break 3rd party software, launching the word run command is just one of the places where they don't want to go through the trouble.