1. No Profile Picture
    Contributing User
    ASP Explorer (0 - 99 posts)

    Join Date
    Nov 2005
    Rep Power

    find the executable application for a file

    I have been trying to find code examples that would help to find the users' version of adobe reader that is on their machine. I have a file attachment form that any user can add attached files and other users can view. The problem is that when a user browse for a file and it is a .pdf it records the version of adobe from that individual. Now the problem I am getting is when another individual who trys to open that file and has an other version of adobe they are unable to open it.

    What I need help with is to use VB to determine the version and the path to their copy of adobe and use it to open the file. I have found some code examples that will search the registry for adobe and return the path. That seemed like a good way about approaching it but I was not able to get it to work. Another idea would be to find the executable for a .pdf file.

    Any ideas would be appreciated

  2. #2
  3. Moderator
    ASP Super Genius (4500 - 4999 posts)

    Join Date
    Apr 2009
    The Great Land
    Rep Power
    Why wouldn't it work - error message, wrong results, nothing happend?

    Want to provide link to the code example?

    This one seems to work: http://www.vbaexpress.com/forum/showthread.php?t=29533

    I had to comment out:
    sOpenCommand = Mid(sOpenCommand, 2, Len(sOpenCommand) - 2)

    I tested with .docx and .pdf files.

    The .docx file opened in Word but the app is minimized to Taskbar. The .pdf file tries to open, but errors 'can't find file', I click ok and the pdf opens minimzed in another instance of Adobe. So now have two instances of the Adobe app open. Weird.
    Last edited by June7; November 21st, 2012 at 07:35 PM.
    I like to know if my suggestion helped you. One way to let me know is by clicking star at bottom left corner of post.

Similar Threads

  1. Using LinkLabel to run an executable file when clicked
    By zeetec1 in forum .NET Development
    Replies: 0
    Last Post: June 7th, 2010, 07:02 AM
  2. Find number of pages in a tif file from a .net application
    By sb_rkarnati in forum .NET Development
    Replies: 5
    Last Post: January 1st, 2008, 11:07 PM
  3. how to call a COM executable file from ASP file?
    By ramamoorthy in forum ASP Development
    Replies: 6
    Last Post: December 20th, 2004, 06:49 AM
  4. downloading an executable(.exe) file or a folder
    By selvamani_js in forum ASP Development
    Replies: 1
    Last Post: February 26th, 2004, 08:08 AM
  5. How to make the ASP file in the executable program?
    By Steve Schofield in forum ASP Development
    Replies: 0
    Last Post: May 13th, 2002, 05:58 AM

IMN logo majestic logo threadwatch logo seochat tools logo