473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

PathFindOnPath

Wim
In the Win32 API there's a function called PathFindOnPath. This searches
the Path for the specified file. Does an equivalent exist in C#? I guess
I could use Environment.GetEnvironmentVariable("path"), then split the
returning string in separate directories and then check if the file I'm
looking for exists (File.Exists()) in any of these directories. Is that
the way to go?

--
Wim
Nov 15 '05 #1
1 2006
In the Win32 API there's a function called PathFindOnPath. This searches
the Path for the specified file. Does an equivalent exist in C#?


You can still call PathFindOnPath if it does what you want. I don't
think there's any equivalent method in the BCL.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.