VB6: Geting a folder path without using "Dir"

PhoenixOfWater

Golden Member
Jul 8, 2002
1,583
0
0
I need something that will do the same as this
Dir(C:\MyFiles\Stuf*)
and return C:\MyFiles\Stuff

I need to be able to use wildcard, is there a way to do this without Dir?

Thanks for your help
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Windows API calls like FindFirstFile / FindFirstFileEx (you can look them up at msdn.microsoft.com).