CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2010
    Posts
    4

    Find the full path of a specific exe file

    I am trying to run compare.exe araxis from VB.

    As long as I have the full path of the compare.exe file, then, I have no problem running the exe via the shell command.
    However, since the exe location might differ from one machine to another I want my code to be flexible enough so that it will automatically recognize the compare.exe path for every machine that uses my code.

    Notice the following:
    1. The FindExecutable solution does work in finding docs, xcel and other types of executables however in my case it will not work since there is no file extension for araxis.
    2. The Environ option will not work since it is not a must to have the compare.exe definition under the ENVIRON(“PATH”). Therfore this solution is not reliable.

    I am really desperate for a solution!
    Thanks, Tami.

  2. #2
    Join Date
    Apr 2010
    Location
    Dayton, OH
    Posts
    16

    Re: Find the full path of a specific exe file

    Unless Araxis sets a registry key telling you where it is installed, I believe your only option is to have a configuration that allows the user to specify where the compare.exe file is located.

  3. #3
    Join Date
    Apr 2010
    Posts
    4

    Re: Find the full path of a specific exe file

    If it does show the path in the reg do yo know how I can use it?

  4. #4
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

  5. #5
    Join Date
    Apr 2010
    Posts
    4

    Re: Find the full path of a specific exe file

    Thanks HanneSThEGreaT,

    However I still can't manage to get this working.
    I still don't quite understand how to pull out from the regestry the full path for for my "compare.exe" file.

    could you (or anyone) please provide me a simple code example.... Thanks!

  6. #6
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: Find the full path of a specific exe file

    Hello again.

    OK, let me ask you this:

    Did you find the registry key in which Araxis saves info ?

  7. #7
    Join Date
    Apr 2010
    Posts
    4

    Re: Find the full path of a specific exe file

    no...

  8. #8
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: Find the full path of a specific exe file

    Do you have any documentation on Araxes, I suggest you go through them, or contact their help desk

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured