Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Right click menu from windows explorer
Message
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00967962
Message ID:
01160830
Views:
13
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform