WinAPI call to locate a command on the systems path & environment?
I recall s开发者_Go百科eeing an API call or a .NET function where for example if I Start->Run
cmd.exe
it would search the %path% until it locates cmd.exe
So that API would look like
String path = GetFullPathOrWhatever("cmd.exe") // RESULT would be: c:\windows\cmd.exe OR WHEREVER THE SYSTEM WOULD FIND IT
Any ideas which API does this search?
SearchPath
I believe you are looking for the SearchPath function?
精彩评论