HEllo

I've a simple PDF file that I'd like to launch with a VB script, but I'm not
having much luck.

I'm using the run command and it works, as I can see an Acrobat process in
the task manager but I never see the PDF.


x = WSHShell.run ("C:\ComponentTemp\CondorMAC\Condor717Setup.pdf",0,True)

Any ideas?
Thanks
Jason

Re: Using wshshell.run I can't launch a PDF file by itsmillertime4u

itsmillertime4u
Wed Jun 20 16:41:44 CDT 2007

I found the best way to do this is launch Acrobat, passing the pdf
file path

IE

x = WSHShell.run (Chr(34) & "C:\Program Files\Adobe Acrobat
\acrobat.exe" & Chr(34) & " c:\ComponentTemp\CondorMAC
\Condor717Setup.pdf",0,True)


Re: Using wshshell.run I can't launch a PDF file by TDM

TDM
Thu Jun 21 09:29:13 CDT 2007


"Jason" <sdfdsf@ertre.com> wrote in message
news:OjcTUG4sHHA.400@TK2MSFTNGP02.phx.gbl...
> HEllo
>
> I've a simple PDF file that I'd like to launch with a VB script, but I'm
> not
> having much luck.
>
> I'm using the run command and it works, as I can see an Acrobat process in
> the task manager but I never see the PDF.
>
>
> x = WSHShell.run ("C:\ComponentTemp\CondorMAC\Condor717Setup.pdf",0,True)
>
> Any ideas?
> Thanks
> Jason
>
>

You might try checking your file association for PDF. I was able to launch a
PDF
just fine via the .Run method, and I also tried the .Exec method which also
worked fine.

FYI


TDM