开发者

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜