Results 1 to 5 of 5

Thread: Find a path to a file

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    376

    Find a path to a file

    Is there any way to capture a path. ex. I want to find excel.exe on someone's maching can I somehow do a search for it and then get the path?

  2. #2
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: Find a path to a file

    Couple of options:

    1. Do a recursive Search of the HDD for the file (Foldes & Sub folders etc) using API's
    2. Use FSO (to do something similar to above)
    3. Look in the registry if it is a M$ product your looking for - this method would/could be limited.

    What is the actual App your looking for?

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Find a path to a file

    If you want to find Excel then look at this registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Excel.exe

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    376

    Re: Find a path to a file

    I went with the recursive search and just tracked each path as I went through and saved it when I hit "path + \excel.exe" this worked fine but a bit slow It worked better when I limited it to just c:\program files, and then I tried forcing this path:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths

    but it does not exist.

  5. #5
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: Find a path to a file

    Registry key <> Path to file
    The path is inside the key

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