|
-
Mar 6th, 2006, 02:57 PM
#1
Thread Starter
Hyperactive Member
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?
-
Mar 6th, 2006, 03:13 PM
#2
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?
-
Mar 6th, 2006, 03:31 PM
#3
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
-
Mar 8th, 2006, 04:57 PM
#4
Thread Starter
Hyperactive Member
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.
-
Mar 8th, 2006, 05:04 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|