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?
Printable View
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?
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?
If you want to find Excel then look at this registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Excel.exe
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.
Registry key <> Path to file
The path is inside the key