Question : Can't use Shell() function to launch Acrobat

The title just about says it all.... I have written some code which uses the Shell() function to launch acrobat. When I wrote the code, it worked fine. The only thing I can think of is that I am now using a different pc which has a later version of Acrobat on it. I need to dynamically build a Command Line according to which document needs to be viewed.

What I have found so far is that this works.....

Shell "C:\program files\adobe\reader 8.0\reader\acrord32.exe H:\EEEBase\Invoices\1382.pdf"

But this doesn't

strCommandLine="C:\program files\adobe\reader 8.0\reader\acrord32.exe H:\EEEBase\Invoices\1382.pdf"
Shell strCommandLine

So why is this? When Acrobat fails to open a valid PID is being returned to my program.

Ian

Answer : Can't use Shell() function to launch Acrobat

you can also try

followhyperlink "H:\EEEBase\Invoices\1382.pdf"
Random Solutions  
 
programming4us programming4us