>Hi Hilmar,
>
>I just execute the code you suggested and I got an error "Invalid association or URL."
>
>Can you tell me I what I did wrong in the following codes:
> ...
If you can't open the file by double-clicking it in Windows Explorer, you can't use this function either. Check whether you can open the specified file from Windows Explorer.
"Invalid association" seems to indicate that there is, precisely, a problem with the association. "Association" is the information, which program opens which extensions.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)