>>Will work just fine. It could be that OP created problem at first place by
>>doing typo like
>>
>>
>>MYFILE = "C:\MY FILE\TEST.XLS"
>>lcFileName = [MFILE]
>>
>>
>>BTW Thank you very much for this answers because it answered for me
>>few long unanswered questions; How to open TIF file with MSOV and also how to open XPS file with XPS viewer.
>>
>>Well this WScript.Shell call answers them both :)
>>And was so simple.
>
>I believe it's essentially the same as ShellExecute Windows API function. See
Open any document FAQ #8134
I think I tried something simillar to this
with ShellExecute but simply did not work.
It was again SergeyB snippet of code for opening PDF files via acrobat.
So I found location/exe for tif viewer (MS Office/fax viewer) but
could not make it to open tif file.
But this worked like a charm :)