Sergey Liberman wrote:

> I am trying to open an Adobe Acrobat document (a manual for my program) from
> a LabVIEW program that will be deployed on a customer's computer. I was able
> to do it using System Exec with a command line like
> 
> "C:\Program Files\Adobe\Acrobat 5.0\AcroRd32.exe" "C:\Manuals\My
> Manual.pdf"
> 
> For that, I needed to find the absolute path to the Acrobat Reader on the
> target computer which I do by interrogating the Windows registry. It works
> fine, but I have a feeling that the same goal can be achieved by simpler
> means. Anyone can tip me on how to do it?


On Win NT/2K/XP you can call System Exec (minimized) with

cmd /C start "" "c:\document\path.ext"

That will open any document (or application) with the default application associated 
with the file extension. 

On Win 95/98/ME it is "command" instead of "cmd" but I didn't test it.

Jean-Pierre Drolet
www.avensys.ca







Reply via email to