If i have created file association in the windows registry how can i check it is still working next time the program runs?
Thanx
IceSoft
Printable View
If i have created file association in the windows registry how can i check it is still working next time the program runs?
Thanx
IceSoft
the obvoius (spelt wrong i know) way would be to read in that registry key to see if its what you set it to (ie read it into a string1, string2 being what you set it to, if string1 <> string2 then msgbox "file associations have chnged).
The other way i can think of, would be the shell execute command of a file of that type and see if it opens in your app, but that would be awekward to do as your app would already be running.