Gu.
Gu.

Reputation: 1957

File search in paths of environment variable "Path"

Is there any function (in Delphi) which can give out the full path and name of a file which is in one of paths in the environment variable Path, for example:

Fn: = FindFileEnv ('my.dll', EnvPath); 

that returns for example

Fn = 'c:\windows\system32\my.dll'

Upvotes: 5

Views: 1441

Answers (1)

Rob Kennedy
Rob Kennedy

Reputation: 163247

Call SearchPath.

Upvotes: 6

Related Questions