Basically, what you want to do is something like dir C:\dir\temp\f* . In .Net, you can do this using Directory.GetDirectories() , but this requires breaking the full path into the path and template. You can use the methods from the Path class to do this. So your code might look something like this:
Directory.GetDirectories( Path.GetDirectoryName(path), Path.GetFileName(path) + "*")
This will return a collection of all the relevant directories, so you will need to figure out which one works best for you.
svick source share