>Ressurecting a old thread :D but with VFP 9 SP1
>
>I was able to make it work for a bunch of file extensions but certain ones did not work and return the error:
>
>"Ole IDispatch exception code 0 from WshShell.RegRead:
>Unable to open registry key "HKCR\.MKV\" for reading..."
>
>.MKV is a video file and exist in the registry
>
>The info when I click on it is:
>(default) REG_SZ (value not set)
>
>but a .AVi
>(default) REG_SZ avifile
>
>Am I wrong to expect a "real value" for this to work properly and a new extension like .AMZN(Amazon Unbox) must a have a least a program to make it work?
>
>To bad that the value don't return an error or empty string and I will have to catch it myself.
Thats the way WSH registry methods work. You can use VFP FFC Registry class or any other WIN API based class/program that works with registry which will return a status code instead of generating an error.
--sb--