Hi,
VB Rookie here again. I'm wondering if anybody knows how to use the PathFindOnPath API Call in Visual Basic. It's supposed to take a file name and search the hard-drive for it, returning the fully-qualified pathname if the file is found.
At least that's what the documentation says, but I am not able to retrieve the path of the file which is what I need. This is the code that I'm using, I'm putting the first parameter (filename) in a message box after the function is called to see if the path is coming back but it is not:
FileName = "textXls.xls"
Call PathFindOnPath(FileName, vbNullString)
I have the function declared on my form as :
Private Declare Function PathFindOnPath Lib "shlwapi.dll" Alias "PathFindOnPathA" (ByVal pszPath As String, ByVal ppszOtherDirs As String) As Boolean
Any help is appreciated.
Thanks,
- VB Rookie
VB Rookie here again. I'm wondering if anybody knows how to use the PathFindOnPath API Call in Visual Basic. It's supposed to take a file name and search the hard-drive for it, returning the fully-qualified pathname if the file is found.
At least that's what the documentation says, but I am not able to retrieve the path of the file which is what I need. This is the code that I'm using, I'm putting the first parameter (filename) in a message box after the function is called to see if the path is coming back but it is not:
FileName = "textXls.xls"
Call PathFindOnPath(FileName, vbNullString)
I have the function declared on my form as :
Private Declare Function PathFindOnPath Lib "shlwapi.dll" Alias "PathFindOnPathA" (ByVal pszPath As String, ByVal ppszOtherDirs As String) As Boolean
Any help is appreciated.
Thanks,
- VB Rookie