1. Open HKEY_CLASSES_ROOT\.txt --> This gives you the description, in the example it is "txtfile".
2. Open HKEY_CLASSES_ROOT\txtfile\shell\open\command (txtfile is the return value of step 1.) This gives you the command the shell is using when opening a ".txt" file.
3. Strip off any quotes and %1-stuff. With the result call ExpandEnvironmentStrings. There it is.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.