Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Dec : FileExists when the filename contains environment variables

www.cryer.info
Managed Newsgroup Archive

FileExists when the filename contains environment variables

Subject:FileExists when the filename contains environment variables
Posted by:"Ian Boyd" (ian.borlandnews0..@avatopia.com)
Date:Wed, 5 Dec 2007 17:04:55

Calling
    FileExists('%SystemRoot%\System32\winhttp.dll')

returns false, when the file does in fact exist.


i seem to recall a function somewhere in the API that will expand a filename
string that contains environment variables into a full string - but i can't
find it.


Any solutions?

Replies:

www.cryer.info
Managed Newsgroup Archive