Rick,
Try this.
lcPath = "C:\program files\Common Files\Microsoft Shared\VFP"
? Chrtran(Proper(Chrtran(lcPath, "\",Chr(10))), Chr(10), "\")
>VFP has the unfortunate problem that all path related functions return filenames and paths in UPPER case. For example, GetFile() returns upper case as does FULLPATH() and even the varoius SYS() functions related to directory values return upper case.
>
>Does anybody know of an API call that you can pass a file or directory path to that will return the fully qualified long filename in proper case back? At least that way I can retrieve the filename and then later convert it into the proper case.
>
>I've played around GetLongPathName and GetFullPathName but neither of these seem to work and simply return the same case as what was passed in. THey basically confirm the file name and that the file exists.
--sb--