RE: Shell a program and run a document

From: Synthanator (anonymous_at_discussions.microsoft.com)
Date: 03/06/04


Date: Fri, 5 Mar 2004 23:16:07 -0800

Hi Tom, not sure if this will help but if you don't have to use shell you could use:

System.Diagnostics.Process.Start("Your.pdf")

And that will launch the pdf you specified in the default application (Adobe Acrobat Reader).

Regards, Synthanator
     
     ----- Tom McLaughlin wrote: -----
     
     I need to start Acrobat reader and load the file guide.pdf
     The following code will start the program but how do I get
     it to load my document guide.pdf?
     
     Shell("C:\Program Files\Adobe\Acrobat 6.0\Reader\AcRord32.exe ")
     
     The code above I spell out where Acrobat reader is, I there a way to find it
     and load my file from a application path?
     
     
     
     
     
     



Relevant Pages

  • Re: Adobe Acrobat = Bloatware
    ... >aggravating to see the bloatware that is Acrobat Reader ... >having to load 12gazillion plug-ins on startup, ... >PDF file. ... PDF files instantly. ...
    (comp.sys.mac.advocacy)
  • Re: Is there any way to start (and later quit) an EXE file.
    ... the QuitApp subroutine so that it will terminate any process named "VNC.exe" ... Is there also a way to avoid the first macro trying to load the EXE a ... regain complete control of XP and lose barcode scanner control. ... You can use the Shell function to launch an executable file but you ...
    (microsoft.public.excel.misc)
  • Re: Hang related to Internet connection
    ... > Kjots (text editor) ... > to launch a work window. ... > to 5 minutes to load and retrieve mail. ... > The e-mail programs have the worst problem, but what's going on with gedit? ...
    (RedHat)
  • Re: Windows XP Service Pack 2
    ... With regards to the antivirus warning: You can double-click on the "warning ... The easiest way I know to correct this is to uninstall the Adobe ... If you are already running the latest version of the adobe acrobat reader ... Make sure the checkboxes for "Display PDF in browser" and "Check Browser ...
    (microsoft.public.windowsxp.general)
  • Re: Delay loading applications for 10 min. after Windows startup
    ... load for around 10 minutes after Windows starts up. ... usage level for about 10 minutes without displaying any windows. ... Based on observing the Task Manager process list, ... same launch delay occurs with Internet Explorer and several other Internet ...
    (microsoft.public.windowsxp.network_web)